Giter Site home page Giter Site logo

Comments (4)

alliyya avatar alliyya commented on August 18, 2024

Occurs when owl classes and owl object properties have incorrect attributes. owl:Class rdf:about rather than owl:Class rdf:ID, adding exception handling to properly reflect this an issue with the ontology as opposed to the document generator itself.

class--> rdf:ID
object properties --> rdf:ID
instances --> rdf:about

from ontology-tools.

joelacummings avatar joelacummings commented on August 18, 2024

I noticed someone was changing my rdf:about. I see why now but I'd like to say that rdf:about is completely valid as far as the spec goes (https://www.w3.org/TR/owl-ref/#subClassOf-def) and the bigger problem is a lot of tools will exclusively use rdf:about when defining elements (i.e. Protege and rdflib). The reason for this is rdf:about allows you to specify full URIs that maintain definitions outside of a document so they are not just within the document. It is explained very well here: https://stackoverflow.com/questions/7118326/differences-between-rdfresource-rdfabout-and-rdfid#7119042 -- Some developers exclusively use rdf:about for this reason.

In order to make the tool as supportive as possible it would be ideal to support rdf:about, if you'd like help I'm willing to assist where necessary.

Instances will always specify their parent as the differentiating factor i.e.
<cwrc:ClassImAnInstanceOf rdf:about="myID">

from ontology-tools.

rwarren2 avatar rwarren2 commented on August 18, 2024

As is usual, the semantic web standards are moving targets and the RDF/XML syntax carries a lot of legacy decisions and concepts from the xml days.

specgen is based on the python bindings for rdflib and uses that parser to load the owl file. Interestingly, whatever bug we were hitting was triggered by rdf:about.

The major difference between rdf:about and rdf:ID is described in 2.14 Abbreviating URIs: rdf:ID and xml:base of the RDF syntax. Short version, the value of rdf:ID can only occur once while rdf:about will allow the reuse of the URI.

The use of rdf:ID for ontologies dates back to the early days of OWL in XML where the single node definition was used for data integrity by libraries like OWLAPI (also used by protege) and the local URI restriction allowed the ontological terms to be grounded to the container.

As the cwrc ontology increases in size, I'd rather keep rdf:ID as an additional check for ontological terms. Whatever future changes, this issue is strictly in the owl file and does not affect the rest of the file formats or what occurs in the SPARQL server.

from ontology-tools.

alliyya avatar alliyya commented on August 18, 2024

Resolved in d26e508

from ontology-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.