|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void addSuperClass(TypeExpression superClass)
superClass
- The super class.void addSuperClass(String superClassURI)
superClassURI
. A class can have multiple
super classes. Properties that are defined in the super class are also
available in the sub class.
superClassURI
- URI of the super classvoid addInstance(Resource instance)
instance
- The instance to add.RDFClassInfo getInfo()
RDFClassInfo
for this setup.
void setResourceComment(String comment)
comment
- The comment of the resource.void setResourceLabel(String label)
label
- The label of the resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |