-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCONSTRUCT_CreatorPerson.txt
29 lines (23 loc) · 1.07 KB
/
CONSTRUCT_CreatorPerson.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PREFIX mydata: <http://example.com/resource/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX spif: <http://spinrdf.org/spif#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX adms: <https://www.w3.org/ns/adms#>
CONSTRUCT {
?creatorPersoniri rdf:type foaf:Person ;
foaf:name ?creatorPersonName ;
adms:identifier ?creatorPersonORCID .
} WHERE {
?c mydata:creatorPersonID ?creatorPersonID .
?c mydata:creatorPersonName ?creatorPersonNameprep.
bind(STRLANG(?creatorPersonNameprep, "en") AS ?creatorPersonName)
OPTIONAL { ?c mydata:ORCID ?orcidprep .
bind(iri(concat("https://orcid.org/", spif:encodeURL(?orcidprep))) as ?creatorPersonORCID) }
bind(iri(concat("http://dskg.org/entity/person/", spif:encodeURL(?creatorPersonID))) as ?creatorPersoniri)
} LIMIT 100