Coder Social home page Coder Social logo

Comments (4)

yy20716 avatar yy20716 commented on June 4, 2024 1

I am sorry but I realized that I put a wrong tag in the above example. I made a copy-and-paste error, i.e.

   <owl:Class rdf:resource="http://purl.obolibrary.org/obo/MONDO_0005017">

but this should be

   <owl:Class rdf:about="http://purl.obolibrary.org/obo/MONDO_0005017">

In other words, because of this resource tag, owlapi does not consider MONDO_0005017 as a class, so obograph does not basically execute the codes that parse OWLDeclarationAxiom and convert them as nodes.

Nonetheless, it would be more intelligent if we could add codes that treat subjects and objects as classes when we encounter rdfs:subClassOf property. The current codes only does this for subject; can I add codes that treat the object as class as well? Thank you.

from obographs.

cmungall avatar cmungall commented on June 4, 2024

from obographs.

balhoff avatar balhoff commented on June 4, 2024

I don't think it's valid RDF/XML to use rdf:resource here. If it is used to indicate the object of a predicate, the predicate is the element name. But owl:Class is not a predicate. At least that's my reading of https://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-empty-property-elements

from obographs.

yy20716 avatar yy20716 commented on June 4, 2024

Thanks for your clarification. Yes, in other words, owlapi's behavior and interpretation is correct, i.e. rdf:resource should not be used there.

from obographs.

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.