question

Upvotes
Accepted
1 1 0 3

OpenPermID-bulk-person-20180916_070349.ttl missing tr-vcard namespace definition

I am following the quite excellent tutorial on loading OpenPermId data (

https://jbarrasa.com/2018/02/01/neo4j-is-your-rdf-store-part-3-thomson-reuters-openpermid/) and discovered that the tr-vcard namespace that is reference on line

51389 of the file

OpenPermID-bulk-person-20180916_070349.ttl

is not defined in the file itself. I added

@prefix tr-vcard: <http://permid.org/ontology/tr-vcard/>; .

to the top of the .ttl file, and now it loads. The error I was getting was:

Namespace prefix 'tr-vcard' used but not defined [line 51389]

permid-apiintelligent-tagging-apiopen-permid-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@a3e2ef47-7c12-4a3d-b1e3-eca6731a203c

OpenPermID-bulk-person-20180923_091121.ttl is available. Can you test with this latest one?

Contacted CLFHelpDesk to verify the issue.

Upvotes
Accepted
78.8k 250 52 74

@a3e2ef47-7c12-4a3d-b1e3-eca6731a203c

This issue has been resolved on 25 Nov 2018. The latest file (OpenPermID-bulk-person-20181125_060228.ttl.gz) contains tr-vcard and vcard prefixes.

@prefix tr-vcard: <http://permid.org/ontology/tr-vcard/#> .
@prefix tr-common: <http://permid.org/ontology/common/> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix tr-person: <http://permid.org/ontology/person/> .
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 1 0 3

No joy... Here is a screenshot...screenshot-at-sep-26-09-39-37.png


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvote
78.8k 250 52 74

I have tested the TTL file with the Apache Jena, as mentioned on this thread.

I used it with the short version of the OpenPermID-bulk-person-20180923_091121.ttl file.

@prefix tr-person: <http://permid.org/ontology/person/> .
@prefix tr-common: <http://permid.org/ontology/common/> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix skos:  <http://www.w3.org/2004/02/skos/core#> .

<https://permid.org/1-10010167>
        a                    tr-person:AcademicDegree ;
        tr-common:hasPermId  "10010167"^^xsd:string ;
        skos:prefLabel       "Doctorate in Philosophy"^^xsd:string .


<https://permid.org/1-10010156>
        a                    tr-person:AcademicDegree ;
        tr-common:hasPermId  "10010156"^^xsd:string ;
        skos:prefLabel       "Doctor of Law (Juris Doctor)"^^xsd:string .


<https://permid.org/1-10010148>
        a                    tr-person:AcademicDegree ;
        tr-common:hasPermId  "10010148"^^xsd:string ;
        skos:prefLabel       "Bachelor's Degree"^^xsd:string .


<https://permid.org/1-10011917>
        a                    tr-person:AcademicDegree ;
        tr-common:hasPermId  "10011917"^^xsd:string ;
        skos:prefLabel       "Honour's Bachelor's of Business Administration"^^xsd:string .


<https://permid.org/1-10011906>
        a                    tr-person:AcademicDegree ;
        tr-common:hasPermId  "10011906"^^xsd:string ;
        skos:prefLabel       "Bachelor of Commerce"^^xsd:string .
		
<https://permid.org/1-34419229867>
        a                               tr-person:Person ;
        tr-common:hasPermId             "34419229867"^^xsd:string ;
        tr-common:hasPublicationStatus  tr-common:publicationstatuspublished ;
        tr-person:hasQualification      <https://permid.org/1-37634861017> , <https://permid.org/1-37634861364> ;
        vcard:additional-name           "Brooke"^^xsd:string ;
        vcard:family-name               "Seeley"^^xsd:string ;
        vcard:given-name                "Morgan"^^xsd:string .


<https://permid.org/1-34419163531>
        a                               tr-person:Person ;
        tr-common:hasPermId             "34419163531"^^xsd:string ;
        tr-common:hasPublicationStatus  tr-common:publicationstatuspublished ;
        tr-person:hasQualification      <https://permid.org/1-37634776849> , <https://permid.org/1-37634777757> ;
        vcard:family-name               "Cushmaro"^^xsd:string ;
        vcard:given-name                "Tal"^^xsd:string .
		
<https://permid.org/1-34413761473>
        a                               tr-person:Person ;
        tr-common:hasPermId             "34413761473"^^xsd:string ;
        tr-common:hasPublicationStatus  tr-common:publicationstatussuperseded ;
        tr-vcard:preferred-name         "Chris"^^xsd:string ;
        vcard:family-name               "Lambert"^^xsd:string ;
        vcard:given-name                "Christopher"^^xsd:string ;
        vcard:hasGender                 vcard:male .

After running, I got this error:

11:06:45 ERROR riot                 :: [line: 37, col: 9 ] Undefined prefix: vcard 
Failed to load data

Therefore, I added the vcard prefix to the TTL file.

@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .

After re-running, I got another error.

11:08:26 ERROR riot                 :: [line: 53, col: 9 ] Undefined prefix: tr-vcard 
Failed to load data

Thus, I added another tr-vcard prefix to the TTL file.

@prefix tr-vcard: <http://permid.org/ontology/tr-vcard/> .

After adding those prefixes, it is running fine.

The completed test TTL file is attached: personttl.txt

I can contact the Open PermID team to add those prefixes to the OpenPermID-bulk-person file.


personttl.txt (2.9 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks for sharing.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.