8000 error when importing dcterms · Issue #1075 · ontodev/robot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

error when importing dcterms #1075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wdduncan opened this issue Nov 19, 2022 · 3 comments
Open

error when importing dcterms #1075

wdduncan opened this issue Nov 19, 2022 · 3 comments

Comments

@wdduncan
Copy link

This issue is a follow up to INCATools/ontology-development-kit#614.

Suppose, you have an ODK file named foo-odk.yaml that references the dcterms library as an import group. E.g.:

import_group:
  products:
  - id: dcterms
      mirror_from: http://protege.stanford.edu/plugins/owl/dc/terms.owl

When you run seed-via-docker.sh -C configs/foo-odk.yaml you get the error:

ERROR OWLOntologyManagerImpl.checkForOntologyIDChange() new:Ontology(OntologyID(Anonymous-15)) [Axioms: 0 Logical Axioms: 0] First 20 axioms: {}
Could not load imported ontology: <http://protege.stanford.edu/plugins/owl/dc/terms.owl> Cause: Ontology already exists. OntologyID(OntologyIRI(<http://purl.org/dc/terms/>) VersionIRI(<null>))

@matentzn determined that the error has something to do with robot, and gave a work around. But, you may want to look into it.

This is how you can reproduce the error:

echo "INSERT DATA { <A> <B> <C> }" > q.sparql 
robot query -I http://protege.stanford.edu/plugins/owl/dc/terms.owl --update q.sparql merge -o tmp/test.ofn
@matentzn
Copy link
Contributor

Just to be clear, the error has nothing to do with ODK and is purely a consequence of chaining query --update with any other robot step, like merge. This does not happen with any other ontology I know of.

@ddooley
Copy link
ddooley commented Mar 9, 2023

Not sure if this is related, but I try to add Prefix(dcterms:=http://purl.org/dc/terms/) to my foodon-edit.ofn file via protege, and that's fine, it saves and uses that prefix for all dc references.
But the moment I use robot (and OWLAPI presumably) to add a dc:date to foodon-edit.ofn and resave, the dcterms prefix gets toasted and all dc terms get full URI in the file.

@matentzn
Copy link
Contributor
matentzn commented Mar 9, 2023

@ddooley i think your problem is more #1101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0