Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-112

enhance schemagen to import ontologies for inference

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Jena

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            bwm Brian McBride
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: