enhance schemagen to import ontologies for inference
----------------------------------------------------
Key: JENA-112
URL: https://issues.apache.org/jira/browse/JENA-112
Project: Jena
Issue Type: Improvement
Components: Jena
Reporter: Brian McBride
I have an ontology for publishing linked data that is based on the data cube
ontology [1]. It defines properties as AttributeProperties. The data cube
ontology defines AttributeProperties to be a subclass of rdf:Property.
However, even with inference turned on, schemagen does not recognise my
AttributeProperties as properties, presumably because it has not loaded the
cube ontology and thus cannot infer that they are properties. Instead it
treats them as resources.
e.g. for
[[
:using
a qb:AttributeProperty;
rdfs:label "using"@en;
rdfs:comment "An instrument used in making a
measurement"@en;
rdfs:isDefinedBy <>;
]]
schemagen produces
[[
/** <p>An instrument used in making a measurement</p> */
public static final Resource using = m_model.createResource(
"http://environment.data.gov.uk/def/air-quality/using" );
]]
It would be good if schemagen could process imported ontologies, either
including them directly from the web or by enabling the user to specifiy files
where they may be found.
[1] http://purl.org/linked-data/cube
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira