Skip to content
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

Cellfie Import of Individuals with a GND-Identifier – "Missing prefix required" #163

Open
sarahondraszek opened this issue Oct 4, 2022 · 3 comments

Comments

@sarahondraszek
Copy link

sarahondraszek commented Oct 4, 2022

Dear Cellfie users,

I am currently trying to use Cellfie to import people with GND-identifiers into an ontology of a letter correspondence that I modelled.

To do so, I created some simple import rules in Cellfie. Unfortunately, I can not seem to find a solution to the problem that Cellfie and hence Protégé fail to recognise URLs that I want to use as resource identifiers. Whenever I try to import URLs from a cell with a set prefix (like "gnd" with the namespace http://d-nb.info/gnd/), I get an error Missing prefix required and when I try to apply some solution that I found online (like adding the prefix to the Active Ontology tab or using (mm:capturing("([^\/]+$)") mm:prefix="gnd")) in the import rules, it still does not work.

As a result, the individuals are not imported as, for example., https://d-nb.info/gnd/116765968 but as http://www.semanticweb.org/sarahreb/ontologies/2022/8/constance-de-salm#2027787-8
(IRI of my ontology). Is there any solution to this problem? With geonames-identifiers and mm:prefix="geonames", it works fine, but with other prefixes that I define in my ontology, I can not seem to make it work.

cellfie_rules

Capture d’écran 2022-10-04 à 11 50 33

Short remark: I tried using https and http, if that could solve the issue. That is why there are two spreadsheet versions with different URLs.

Thank you in advance for your help!

@martinjoconnor
Copy link
Member

Can you post an OWL file, a spreadsheet, and a set of rules here that replicate the issue and I will take a look.

@sarahondraszek
Copy link
Author

Of course, thank you a lot! I converted the OWL and rule-JSON file to TXT to upload them, I hope it works.
filtered_cds_data.xlsx
transformation_rules-cellfie.txt
cds-ontology.txt

@sarahondraszek
Copy link
Author

Also some more screenshots that show how after the import of the GND-URLs, the namespace is changed to my local IRI but with geonames, the same import shows the actual geonames namespace.
Capture d’écran 2022-10-05 à 08 39 28
Capture d’écran 2022-10-05 à 08 39 48
Capture d’écran 2022-10-05 à 08 40 29

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

2 participants