|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.hearc.I04_05s08.Ontology.OntFile
ch.hearc.I04_05s08.Ontology.RDFS.RdfsFile
A representation of a rdfs:Class
Field Summary | |
private LinkedList |
classes
Classes composing the RDF Schema |
private LinkedList |
properties
Properties composing the RDF Schema |
Fields inherited from class ch.hearc.I04_05s08.Ontology.OntFile |
|
Constructor Summary | |
RdfsFile()
Init the untitled RDF Schema file |
|
RdfsFile(String filename)
Init the RDF Schema file |
Method Summary | |
boolean |
add(RdfsClass c)
Add a new Class to the RDF Schema |
boolean |
add(RdfsProperty prop)
Add a new Property to the RDF Schema |
boolean |
add(RdfsResource r)
Add a resource to the file |
boolean |
containsClass(RdfsClass c)
Return if the RdfsClass is already in the file |
boolean |
del(RdfsClass c)
Remove a Class from the RDF Schema |
boolean |
del(RdfsProperty prop)
Delete the Property |
boolean |
del(RdfsResource r)
Delete a resource from the file |
RdfsClass |
getClass(String name)
Get a class from is name |
RdfsClass[] |
getClasses()
Get all classes members of the RDF Schema |
RdfsProperty[] |
getProperties()
Get all properties members of the RDF Schema |
RdfsProperty |
getProperty(String name)
Get a property from is name |
String |
toString()
String representation of the rdfs file |
Methods inherited from class ch.hearc.I04_05s08.Ontology.OntFile |
close, getFilename, getName, getReader, setFilename |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private LinkedList classes
private LinkedList properties
Constructor Detail |
public RdfsFile(String filename)
filename
- the file's pathpublic RdfsFile()
Method Detail |
public String toString()
toString
in class OntFile
public boolean del(RdfsResource r)
r
- resource
public boolean add(RdfsResource r)
r
- resource
public boolean add(RdfsClass c)
c
- the class which would be add
public boolean del(RdfsClass c)
c
- the class which would be deleted
public RdfsClass[] getClasses()
public RdfsClass getClass(String name)
name
- the name of the desired class
public boolean containsClass(RdfsClass c)
public boolean add(RdfsProperty prop)
prop
- the property which would be add
public boolean del(RdfsProperty prop)
prop
- the property which would be deleted
public RdfsProperty[] getProperties()
public RdfsProperty getProperty(String name)
name
- the name of the desired property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC