protected class RDFClassInfo.PrivateRDFSetup extends Object implements RDFClassInfoSetup
Ontology
has access to it and can make changes.Constructor and Description |
---|
RDFClassInfo.PrivateRDFSetup(RDFClassInfo info) |
Modifier and Type | Method and Description |
---|---|
void |
addInstance(Resource instance)
Add an instance of this class.
|
void |
addSuperClass(String namedSuperClass)
Add a super class.
|
void |
addSuperClass(TypeExpression superClass)
Add a super class.
|
RDFClassInfo |
getInfo()
Get the info object which is the instance of the class this class is
nested in.
|
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.
|
public RDFClassInfo.PrivateRDFSetup(RDFClassInfo info)
public void addInstance(Resource instance)
RDFClassInfoSetup
addInstance
in interface RDFClassInfoSetup
instance
- The instance to add.RDFClassInfoSetup.addInstance(Resource)
public void addSuperClass(TypeExpression superClass)
RDFClassInfoSetup
addSuperClass
in interface RDFClassInfoSetup
superClass
- The super class.RDFClassInfoSetup.addSuperClass(TypeExpression)
public void addSuperClass(String namedSuperClass)
RDFClassInfoSetup
superClassURI
. A class can have multiple
super classes. Properties that are defined in the super class are also
available in the sub class.addSuperClass
in interface RDFClassInfoSetup
namedSuperClass
- URI of the super classRDFClassInfoSetup.addSuperClass(String)
public RDFClassInfo getInfo()
getInfo
in interface RDFClassInfoSetup
public void setResourceComment(String comment)
RDFClassInfoSetup
setResourceComment
in interface RDFClassInfoSetup
comment
- The comment of the resource.RDFClassInfoSetup.setResourceComment(String)
public void setResourceLabel(String label)
RDFClassInfoSetup
setResourceLabel
in interface RDFClassInfoSetup
label
- The label of the resource.RDFClassInfoSetup.setResourceLabel(String)
Copyright © 2015 universAAL Consortium. All Rights Reserved.