|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.hearc.I04_05s08.Ontology.RDFS.RdfsManager
A manager for RDF Schema
Field Summary | |
private static RdfsProperty |
XString
|
Constructor Summary | |
RdfsManager()
|
Method Summary | |
private static RdfsClass |
buildClass(RdfsFile file,
String name)
Return a class from the rdfs file |
static com.hp.hpl.jena.ontology.OntModel |
buildModel(RdfsFile file)
Build a model with the RdfsFile |
private static RdfsProperty |
buildProperty(RdfsFile file,
String name)
Return a property from the rdfs file |
static RdfsClass |
getClass(RdfsFile[] rdfs,
String name)
Get a class from some RDFS |
private static com.hp.hpl.jena.ontology.OntClass |
getOntClass(com.hp.hpl.jena.ontology.OntResource[] classes,
String uri)
Get a class from its uri |
private static com.hp.hpl.jena.ontology.OntProperty |
getOntProperty(com.hp.hpl.jena.ontology.OntResource[] props,
String uri)
Get a property from its uri |
static RdfsProperty |
getProperty(RdfsFile[] rdfs,
String name)
Get a property from some RDFS |
private static com.hp.hpl.jena.ontology.OntResource |
getResource(com.hp.hpl.jena.rdf.model.Resource[] resources,
String uri)
Get a resource from its uri |
static RdfsFile |
openRdfs(String filename)
Build a rdfs file |
static String |
rdfsToString(RdfsFile file)
Save a rdfs file into a string |
private static com.hp.hpl.jena.rdql.QueryResults |
runQuery(com.hp.hpl.jena.rdf.model.Model model,
String query)
Execute a RDQL query |
static boolean |
saveRdfs(String filename,
RdfsFile file)
Save a rdfs file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static RdfsProperty XString
Constructor Detail |
public RdfsManager()
Method Detail |
public static boolean saveRdfs(String filename, RdfsFile file)
filename
- path of the source filefile
- the rdfs filepublic static String rdfsToString(RdfsFile file)
file
- the rdfs filepublic static com.hp.hpl.jena.ontology.OntModel buildModel(RdfsFile file)
file
- the rdfs file
private static com.hp.hpl.jena.ontology.OntResource getResource(com.hp.hpl.jena.rdf.model.Resource[] resources, String uri)
resources
- the ontResourcesuri
- uri that searched
private static com.hp.hpl.jena.ontology.OntClass getOntClass(com.hp.hpl.jena.ontology.OntResource[] classes, String uri)
classes
- the ontClassesuri
- uri that searched
private static com.hp.hpl.jena.ontology.OntProperty getOntProperty(com.hp.hpl.jena.ontology.OntResource[] props, String uri)
props
- the ontPropertiesuri
- uri that searched
public static RdfsFile openRdfs(String filename)
filename
- path of the source file
private static com.hp.hpl.jena.rdql.QueryResults runQuery(com.hp.hpl.jena.rdf.model.Model model, String query)
model
- current modelquery
- RDQL queryprivate static RdfsClass buildClass(RdfsFile file, String name)
file
- rdfs filename
- identifier of the class (his url)private static RdfsProperty buildProperty(RdfsFile file, String name)
file
- rdfs filename
- identifier of the property (his url)public static RdfsClass getClass(RdfsFile[] rdfs, String name)
rdfs
- RDF Schemaname
- searched classpublic static RdfsProperty getProperty(RdfsFile[] rdfs, String name)
rdfs
- RDF Schemaname
- searched 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