![JAR search and dependency download from the Maven repository](/logo.png)
com.bigdata.gom.alchemy.owl.notes.txt Maven / Gradle / Ivy
When processing an OWL ontology file we note the following:
IGPO classClass = m_om.getGPO(OWL.CLASS);
System.out.println("ClassClass: " + classClass.pp());
System.out.println("RDFS.SUBCLASSOF: " + RDFS.SUBCLASSOF);
Iterator owlClasses = classClass.getLinksIn(RDF.TYPE).iterator();
The classes that do not have a value for RDF.SUBCLASSOF are the base classes.
To determine the class properties we need to retrieve the ObjectProperty(s) and DatatypeProperty(s)
The ObjectProperty expects the rdfs:domain to reference an Class object.
A DatatypeProperty requires the rdfs:domain to reference a datatype such as XMLSchema#string.
Therefore we can process the properties of a class with
class.getLinksIn(RDFS.DOMAIN);
Iterating the solution and checking for OWL.DATATYPEPROPERTY vs OWL.OBJECTPROPERTY
will determine the attributes and associations for a class.
A real issue again is whether we can cache the LinkSets. I don't really see how
this can work. I guess it may be possible to cache LinkSets at the skin level.
Alternatively,
© 2015 - 2025 Weber Informatics LLC | Privacy Policy