edit this page - page history - about editing


Protege is an OWL editor written in Java. See also Jena and Pellet.
  1. Integrating Protege SWRL rules into a Java application


IllegalArgumentException: null
    java.net.URI.create(Unknown Source)  

I got this error when I was opening an OWL ontology with the following definition line, and was trying to create new Annotations:
<owl:Ontology rdf:about="http://openiaml.org/model0.2#"/>

The cause of the exception was actually:

Caused by: java.net.URISyntaxException: Illegal character in fragment at index 29: http://openiaml.org/model0.2##genid445186983782686
        at java.net.URI$Parser.fail(Unknown Source)
        at java.net.URI$Parser.checkChars(Unknown Source)
        at java.net.URI$Parser.parse(Unknown Source)
        at java.net.URI.<init>(Unknown Source)
        ... 35 more

Changing it to this resolved the error:
<owl:Ontology rdf:about="http://openiaml.org/model0.2"/>

Writing Property Chains

To write a property chain in Protege, you need to use the o operator, e.g.:

parent o brother -> uncle

Categories: Java | OWL
edit this page - what links to here? - page history - top
Last edited by jevon jevon 114 months ago