Menu

Other insights: OWL formats, anyType, DC terms

Help
Eugene
2015-10-25
2015-11-07
  • Eugene

    Eugene - 2015-10-25

    Dear Mikhail and owl-cpp users, please let me ask you more questions.

    1) Is it possible to read OWL in non-XML formats, e.g. Turtle?

    2) There's the term http://www.w3.org/2001/XMLSchema#anyType (&xsd;anyType) in some ontologies of mine, leading to "unknown term in standard namespace" error in owl-cpp --- is this a library issue?

    3) Some ontologies have the following DC terms http://purl.org/dc/elements/1.1/license, http://purl.org/dc/elements/1.1/contributor, leading to "unknown predicate type" error in owl-cpp (other DC terms are OK) --- is this a library issue?

    Have a nice week,
    Eugene

     
    • Eugene

      Eugene - 2015-11-01

      1) Turtle is not supported, as stated in Table 2 of the original owlcpp article http://dx.doi.org/10.1186/s13326-015-0035-z
      Should be possible to support though, via an underlying Raptor library.

       
  • M Levin

    M Levin - 2015-11-07

    Hi Eugene,

    Thank you for the link.

    The formats other than RDF/XML are not currently supported.

    Good point about the possibility to support Turtle through Raptor! Would you be interested in contributing a patch for that?

    For xsd:anyType support please see Section 5.2 in
    http://www.w3.org/TR/2012/REC-owl2-syntax-20121211/
    "
    An IRI used to identify a datatype in an OWL 2 DL ontology must
    be rdfs:Literal, or
    identify a datatype in the OWL 2 datatype map (see Section 4), or
    not be in the reserved vocabulary of OWL 2 (see Section 2.4).
    "
    xsd:anyType is not in the datatype map, it IS in the reserved vocabulary (because it is in xsd namespace), so it should not be used. Please use rdfs:Literal instead of it.

    To avoid the 'unknown preducate type' exception, please declare the DC terms as annotation properties.

    Best

    Mikhail

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.