|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.hearc.I04_05s08.Ontology.RDF.RdfManager
A manager for RDF files
Constructor Summary | |
RdfManager()
|
Method Summary | |
private static InstanceOfClass |
buildInstanceOfClass(RdfFile file,
Object o)
Return a class from the rdf file |
private static InstanceOfProperty |
buildInstanceOfProperty(RdfFile file,
String name)
Return a property from the rdf file |
static com.hp.hpl.jena.rdf.model.Literal |
buildLiteral(InstanceOfClass ioc)
Build a rdf literal |
static com.hp.hpl.jena.rdf.model.Model |
buildModel(RdfFile file)
Build a model of a rdf file |
private static com.hp.hpl.jena.ontology.OntModel |
buildOntModel(InstanceOfClass c,
RdfsFile[] rdfs,
com.hp.hpl.jena.ontology.OntModel[] rdfsModel)
Build the required OntModel (for a rdfsClass) |
private static com.hp.hpl.jena.rdf.model.Property |
buildProperty(InstanceOfProperty iop)
Build a rdf property |
private static com.hp.hpl.jena.rdf.model.Resource |
buildResource(InstanceOfClass ioc,
com.hp.hpl.jena.rdf.model.Resource[] res,
com.hp.hpl.jena.rdf.model.Model model,
RdfsFile[] rdfs,
com.hp.hpl.jena.ontology.OntModel[] rdfsmodel)
Build a rdf resource |
static RdfFile |
openRdf(String filename,
RdfsFile[] rdfs)
Open a RDF file with RDF Schemas |
static String |
rdfToString(RdfFile file)
Save a rdf file into a string |
static boolean |
saveRdf(String filename,
RdfFile file)
Save a Rdf file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RdfManager()
Method Detail |
public static RdfFile openRdf(String filename, RdfsFile[] rdfs)
filename
- path of the filerdfs
- RDF Schemas (null for not)
public static boolean saveRdf(String filename, RdfFile file)
filename
- path of the outputfile
- rdf file
public static String rdfToString(RdfFile file)
file
- the rdf filepublic static com.hp.hpl.jena.rdf.model.Model buildModel(RdfFile file)
file
- rdf file
private static com.hp.hpl.jena.rdf.model.Property buildProperty(InstanceOfProperty iop)
iop
- instance of property
public static com.hp.hpl.jena.rdf.model.Literal buildLiteral(InstanceOfClass ioc)
ioc
- instance of class
private static com.hp.hpl.jena.rdf.model.Resource buildResource(InstanceOfClass ioc, com.hp.hpl.jena.rdf.model.Resource[] res, com.hp.hpl.jena.rdf.model.Model model, RdfsFile[] rdfs, com.hp.hpl.jena.ontology.OntModel[] rdfsmodel)
ioc
- instance of classres
- known resourcemodel
- the model's filerdfs
- the RDF Schemasrdfsmodel
- the rdfs model
private static com.hp.hpl.jena.ontology.OntModel buildOntModel(InstanceOfClass c, RdfsFile[] rdfs, com.hp.hpl.jena.ontology.OntModel[] rdfsModel)
c
- the RdfsClassrdfs
- rdfs filesrdfsModel
- known Model
private static InstanceOfClass buildInstanceOfClass(RdfFile file, Object o)
file
- rdf fileo
- object that is instanciate (Literal of RdfNode)private static InstanceOfProperty buildInstanceOfProperty(RdfFile file, String name)
file
- rdf filename
- identifier of the property (his url)
|
||||||||||
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