forked from acdh-oeaw/dha-ontology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sparql.txt
47 lines (39 loc) · 2.16 KB
/
sparql.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix dc: <http://purl.org/dc/elements/1.1/>
prefix dct: <http://purl.org/dc/terms/>
prefix dha: <https://digital-humanities.at/schema#>
premis premis: <http://www.loc.gov/premis/rdf/v1#>
select * where { ?pid a dha:RepoObject; dha:MetadataDescription ?metaref.
?metaref ?pre ?obj.
}
select * where { ?pid a dha:RepoObject; dha:AnnotationDescription ?annoref.
?annoref dha:AnnotationProperty ?propref.
?propref ?pre ?obj.
}
select * where { ?pid a dha:RepoObject; dha:AnnotationDescription ?annoref.
?annoref dha:AnnotationProperty ?propref.
?propref dha:NamedEntity ?entityref.
?entityref dha:hasCatchPhrase ?catchphrase.
optional { ?entityref dha:Identifier ?idref.
?idref dha:hasParsableMetadata ?uri; dct:identifier ?id }
}
select * where { ?pid a dha:RepoObject; dha:AnnotationDescription ?annoref.
?annoref dha:AnnotationProperty ?propref.
?propref ?annoprop ?entityref.
?entityref dha:hasCatchPhrase ?catchphrase.
optional { ?entityref dha:Identifier ?idref.
?idref dha:hasParsableMetadata ?uri; dct:identifier ?id }
}
select * where { ?pid a dha:RepoObject; dha:DisseminationDescription ?dissref.
?dissref dha:DisseminationService ?servref.
?servref dha:conformsTo ?conformsTo; premis:hasIdentifier ?id.
optional { ?servref dha:hasMimeType ?mimetype }
}
select * where { ?pid a dha:RepoObject; dha:PreservationDescription ?prepref.
?prepref dha:hasLicense ?license.
?prepref premis:hasIdentifier ?id
}
select * where { ?col dha:hasType <https://digital-humanities.at/schema#CollectionType/DigitalScholarlyEdition>.
?col dha:RepoCollection ?rcol .
?rcol dha:hasRepoObject ?pid .
}