public interface RDFClassInfoSetup
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
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2018 universAAL Consortium. All rights reserved.