|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.jena.protege2jena.Protege2Jena
An object that can convert an OWLModel into an OntModel. This implementation uses the OWLModel's TripleStore and creates corresponding Jena triples for each.
When completed, this will replace the JenaCreator class.
Field Summary | |
private com.hp.hpl.jena.rdf.model.Model |
dummyModel
A temporary Model which is used to create properties without having to define them with the correct type each time |
private Collection |
fillTripleStores
|
private com.hp.hpl.jena.ontology.OntModel |
ontModel
The target OntModel |
private OWLModel |
owlModel
The source OWLModel |
private static String |
TEMP_SUFFIX
|
private Map |
tripleStore2Model
A Map from TripleStores to Jena Models |
private TripleStoreModel |
tripleStoreModel
|
Constructor Summary | |
private |
Protege2Jena(OWLModel owlModel,
com.hp.hpl.jena.ontology.OntModel ontModel,
Collection fillTripleStores,
Map tripleStore2Model)
|
Method Summary | |
private void |
copyTriples(TripleStore tripleStore,
com.hp.hpl.jena.rdf.model.Model model)
|
private void |
createNamespacePrefixes(TripleStore tripleStore,
com.hp.hpl.jena.rdf.model.Model model)
|
static com.hp.hpl.jena.ontology.OntModel |
createOntModel(OWLModel owlModel)
|
static com.hp.hpl.jena.ontology.OntModel |
createOntModel(OWLModel owlModel,
Collection fillTripleStores)
|
static com.hp.hpl.jena.ontology.OntModel |
createOntModel(OWLModel owlModel,
Collection fillTripleStores,
Map tripleStores2Model)
|
static com.hp.hpl.jena.ontology.OntModel |
createOntModel(OWLModel owlModel,
com.hp.hpl.jena.ontology.OntModelSpec spec,
Collection fillTripleStores)
|
static com.hp.hpl.jena.ontology.OntModel |
createOntModel(OWLModel owlModel,
com.hp.hpl.jena.ontology.OntModelSpec spec,
Collection fillTripleStores,
Map tripleStore2Model)
|
private com.hp.hpl.jena.rdf.model.Statement |
createStatement(Triple triple,
com.hp.hpl.jena.rdf.model.Model model)
|
private com.hp.hpl.jena.rdf.model.Model |
createSubModel(TripleStore tripleStore)
|
private void |
createSubModels()
|
private void |
fillModels()
|
private com.hp.hpl.jena.rdf.model.Model |
getModel(TripleStore tripleStore)
|
protected static Set |
getParseTypeCollectionProperties()
|
private com.hp.hpl.jena.rdf.model.Property |
getProperty(RDFProperty rdfProperty,
com.hp.hpl.jena.rdf.model.Model model)
|
private com.hp.hpl.jena.rdf.model.RDFNode |
getRDFNode(Object object,
com.hp.hpl.jena.rdf.model.Model model)
|
private com.hp.hpl.jena.rdf.model.Resource |
getResource(RDFResource rdfResource,
com.hp.hpl.jena.rdf.model.Model model)
|
static void |
removeRedundantRDFLists(com.hp.hpl.jena.rdf.model.Model model)
In several contexts, such as owl:unionOf operands, it is unusual to have typed rdf:Lists. |
private static void |
removeRedundantRDFListsRecursively(com.hp.hpl.jena.rdf.model.Resource list)
|
private void |
removeRedundantRDFSDomains(com.hp.hpl.jena.rdf.model.Model model)
|
private void |
removeRedundantRDFSSubClassOfEquivalentClasses(com.hp.hpl.jena.rdf.model.Model model)
|
private void |
removeRedundantRDFSSubClassOfOWLThings(com.hp.hpl.jena.rdf.model.Model model)
|
static void |
saveAll(OWLModel owlModel,
URI uri)
|
static void |
saveAll(OWLModel owlModel,
URI uri,
String language)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private com.hp.hpl.jena.rdf.model.Model dummyModel
private Collection fillTripleStores
private OWLModel owlModel
private com.hp.hpl.jena.ontology.OntModel ontModel
private Map tripleStore2Model
private TripleStoreModel tripleStoreModel
private static final String TEMP_SUFFIX
Constructor Detail |
private Protege2Jena(OWLModel owlModel, com.hp.hpl.jena.ontology.OntModel ontModel, Collection fillTripleStores, Map tripleStore2Model)
Method Detail |
private void copyTriples(TripleStore tripleStore, com.hp.hpl.jena.rdf.model.Model model)
public static com.hp.hpl.jena.ontology.OntModel createOntModel(OWLModel owlModel)
public static com.hp.hpl.jena.ontology.OntModel createOntModel(OWLModel owlModel, Collection fillTripleStores)
public static com.hp.hpl.jena.ontology.OntModel createOntModel(OWLModel owlModel, Collection fillTripleStores, Map tripleStores2Model)
public static com.hp.hpl.jena.ontology.OntModel createOntModel(OWLModel owlModel, com.hp.hpl.jena.ontology.OntModelSpec spec, Collection fillTripleStores)
public static com.hp.hpl.jena.ontology.OntModel createOntModel(OWLModel owlModel, com.hp.hpl.jena.ontology.OntModelSpec spec, Collection fillTripleStores, Map tripleStore2Model)
private void createSubModels()
private com.hp.hpl.jena.rdf.model.Model createSubModel(TripleStore tripleStore)
private void createNamespacePrefixes(TripleStore tripleStore, com.hp.hpl.jena.rdf.model.Model model)
private com.hp.hpl.jena.rdf.model.Statement createStatement(Triple triple, com.hp.hpl.jena.rdf.model.Model model)
private void fillModels()
private com.hp.hpl.jena.rdf.model.Model getModel(TripleStore tripleStore)
protected static Set getParseTypeCollectionProperties()
private com.hp.hpl.jena.rdf.model.Property getProperty(RDFProperty rdfProperty, com.hp.hpl.jena.rdf.model.Model model)
private com.hp.hpl.jena.rdf.model.RDFNode getRDFNode(Object object, com.hp.hpl.jena.rdf.model.Model model)
private com.hp.hpl.jena.rdf.model.Resource getResource(RDFResource rdfResource, com.hp.hpl.jena.rdf.model.Model model)
public static void removeRedundantRDFLists(com.hp.hpl.jena.rdf.model.Model model)
model
- private static void removeRedundantRDFListsRecursively(com.hp.hpl.jena.rdf.model.Resource list)
private void removeRedundantRDFSDomains(com.hp.hpl.jena.rdf.model.Model model)
private void removeRedundantRDFSSubClassOfOWLThings(com.hp.hpl.jena.rdf.model.Model model)
private void removeRedundantRDFSSubClassOfEquivalentClasses(com.hp.hpl.jena.rdf.model.Model model)
public static void saveAll(OWLModel owlModel, URI uri) throws Exception
Exception
public static void saveAll(OWLModel owlModel, URI uri, String language) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |