|
||||||||||
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.RDF.RdfFile
An instance of some RDF Schema, a RDF File
Field Summary | |
private LinkedList |
classes
Class's instances composing the RDF file |
private LinkedList |
properties
Property's instances composing the RDF Schema |
private RdfsFile[] |
rdfs
RDF Schema's used in the file |
Fields inherited from class ch.hearc.I04_05s08.Ontology.OntFile |
|
Constructor Summary | |
RdfFile()
Init the untitled RDF file |
|
RdfFile(String filename)
Init the RDF file |
|
RdfFile(String filename,
RdfsFile[] rdfs)
Init the RDF file |
Method Summary | |
boolean |
add(InstanceOfClass c)
Add a new instance of Class to the RDF |
boolean |
add(InstanceOfProperty prop)
Add a new Property to the RDF Schema |
boolean |
del(InstanceOfClass c)
Remove a Class from the RDF Schema |
boolean |
del(InstanceOfProperty prop)
Delete the instance of Property |
InstanceOfClass |
getClass(String name)
Get a class from his name |
InstanceOfClass[] |
getClasses()
Get all classes members of the RDF Schema |
InstanceOfProperty[] |
getProperties()
Get all properties members of the RDF Schema |
InstanceOfProperty |
getProperty(String name)
Get a property from his name |
RdfsFile[] |
getRdfs()
Get the RDFSchema of the file |
String |
toString()
String representation of the 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
private RdfsFile[] rdfs
Constructor Detail |
public RdfFile(String filename)
filename
- the file's pathpublic RdfFile()
public RdfFile(String filename, RdfsFile[] rdfs)
filename
- the file's pathrdfs
- Rdf SchemasMethod Detail |
public String toString()
toString
in class OntFile
public boolean add(InstanceOfClass c)
c
- the instance class which would be add
public boolean del(InstanceOfClass c)
c
- the class which would be deleted
public InstanceOfClass[] getClasses()
public InstanceOfClass getClass(String name)
name
- class name
public boolean add(InstanceOfProperty prop)
prop
- the property which would be add
public boolean del(InstanceOfProperty prop)
prop
- the instance property which would be deleted
public InstanceOfProperty[] getProperties()
public InstanceOfProperty getProperty(String name)
name
- property name
public RdfsFile[] getRdfs()
|
||||||||||
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