org.universAAL.middleware.rdf
Interface RDFClassInfoSetup

Package class diagram package RDFClassInfoSetup
All Known Subinterfaces:
OntClassInfoSetup
All Known Implementing Classes:
RDFClassInfo.PrivateRDFSetup

public interface RDFClassInfoSetup

Setup interface for creating new RDF classes. The creation is separated from the usage; for every RDFClassInfo there is exactly one RDFClassInfoSetup where all the characteristics of this class are defined. To create a new RDFClassInfo, define a subclass of Ontology and overwrite the Ontology.create() method.

Author:
Carsten Stockloew
See Also:
RDFClassInfo, OntClassInfo, OntClassInfoSetup

Method Summary
 void addInstance(Resource instance)
          Add an instance of this class.
 void addSuperClass(String superClassURI)
          Add a super class.
 void addSuperClass(TypeExpression superClass)
          Add a super class.
 RDFClassInfo getInfo()
          Get the RDFClassInfo for this setup.
 void setResourceComment(String comment)
          Set the resource comment which may be used to provide a human-readable description of a resource to clarify the meaning of this class.
 void setResourceLabel(String label)
          Set the resource label which may be used to provide a human-readable version of a resource's name.
 

Method Detail

addSuperClass

void addSuperClass(TypeExpression superClass)
Add a super class. Roughly speaking, this states that this class is more specific than the given class expression.

Parameters:
superClass - The super class.

addSuperClass

void addSuperClass(String superClassURI)
Add a super class. Instances of this class are also instances of the class specified by superClassURI. A class can have multiple super classes. Properties that are defined in the super class are also available in the sub class.

Parameters:
superClassURI - URI of the super class

addInstance

void addInstance(Resource instance)
Add an instance of this class.

Parameters:
instance - The instance to add.

getInfo

RDFClassInfo getInfo()
Get the RDFClassInfo for this setup.


setResourceComment

void setResourceComment(String comment)
Set the resource comment which may be used to provide a human-readable description of a resource to clarify the meaning of this class.

Parameters:
comment - The comment of the resource.

setResourceLabel

void setResourceLabel(String label)
Set the resource label which may be used to provide a human-readable version of a resource's name.

Parameters:
label - The label of the resource.


Copyright © 2014 universAAL Consortium. All Rights Reserved.