information-artifact-ontology / IAO

information artifact ontology
Creative Commons Attribution 4.0 International
78 stars 25 forks source link

malformed owl #280

Open justin2004 opened 3 months ago

justin2004 commented 3 months ago
$ ~/apache-jena-5.1.0/bin/riot --validate iao.owl
05:11:29 WARN  riot            :: [line: 7974, col: 45] Bad IRI: <urn:swrl#e> Code: 61/SCHEME_PATTERN_MATCH_FAILED in PATH: The scheme specific syntax rules are violated. 
05:11:29 WARN  riot            :: [line: 7977, col: 45] Bad IRI: <urn:swrl#d> Code: 61/SCHEME_PATTERN_MATCH_FAILED in PATH: The scheme specific syntax rules are violated.
... 

here is one of the offending lines:

<rdf:Description rdf:about="urn:swrl#e">
justin2004 commented 3 months ago

looks like jena expects a fully qualified URI. e.g.

<hi:hi rdf:resource="http://somethinghere.com/swrl#e"/>
alanruttenberg commented 3 months ago

There's no equivalent of "fully qualified" (as opposed to relative) for urns. The urn: should be fine. Looks like a riot bug to me.

justin2004 commented 3 months ago

the relations ontology had the same situation and jim fixed them:

https://github.com/oborel/obo-relations/issues/803#issuecomment-2275737449

it sounds like an old version of the OWL API created those.

alanruttenberg commented 3 months ago

There was an error in that the urns needed another colon. https://github.com/owlcs/owlapi/issues/732 As the issue points out, most software doesn't (and shouldn't ) care.

justin2004 commented 3 months ago

andy says the URN isn't valid: https://github.com/apache/jena/issues/2626#issuecomment-2275714886