[ 
https://issues.apache.org/jira/browse/JENA-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098964#comment-13098964
 ] 

Dave Reynolds commented on JENA-112:
------------------------------------

In working with Data Cube one would normally explicitly specify the 
rdf:Property type in any case (c.f. Payments ontology example). I don't object 
to Schemagen growing options for explicit import processing but it only seems 
relevant to OWL Full ontologies and those tend to follow this defensive 
if-in-doubt-make-it-explicit guideline.


> 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
>              Labels: inference, schemagen
>
> 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

        

Reply via email to