-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path10_01_dataSources.ttl
65 lines (62 loc) · 2.65 KB
/
10_01_dataSources.ttl
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@base <http://www.openphacts.org/api> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix api: <http://purl.org/linked-data/api/vocab#> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix ops: <http://www.openphacts.org/api#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<#dataSources> a api:API ;
rdfs:label "Data Sources"@en ;
api:sparqlEndpoint <http://alpha.openphacts.org:8890/sparql/> ;
api:contentNegotiation api:parameterBased ;
api:vocabulary <http://rdfs.org/ns/void#> ;
api:description "An API configuration to return information about the loaded data sources" ;
api:endpoint [
a api:ItemEndpoint ;
api:name "Data Sources" ;
api:itemTemplate "http://www.openphacts.org/linked_data_cache" ;
api:description "(UNDER DEVELOPMENT) Information about currently loaded data sources." ;
api:uriTemplate "/sources" ;
api:exampleRequestPath "/sources";
api:viewer <#dataSourcesViewer> ;
api:defaultViewer <#dataSourcesViewer> ] .
<#dataSourcesViewer> a api:Viewer ;
api:name "dataSourcesViewer" ;
api:template
"<http://www.openphacts.org/linked_data_cache> a void:Dataset ;
void:subset ?top_dataset .
?top_dataset foaf:isPrimaryTopicOf ?description .
?dataset dcterms:title ?title .
?dataset dcterms:description ?dctDescription .
?dataset dcterms:license ?license .
?dataset void:subset ?subset .
?dataset prov:wasDerivedFrom ?derivedFrom .
?dataset prov:hadPrimarySource ?primarySource .
?dataset prov:wasQuotedFrom ?quotedFrom .
?dataset prov:wasRevisionOf ?revisionOf .
?dataset void:triples ?tripleNo .
?dataset void:dataDump ?dataDump .
?dataset dcat:landingPage ?landingPage .
?dataset foaf:homepage ?homepage .
?dataset a void:Dataset . ";
api:where
"GRAPH <http://www.openphacts.org/api/datasetDescriptors> {
?dataset a void:Dataset .
?description foaf:primaryTopic ?top_dataset .
OPTIONAL { ?dataset dcterms:title ?title . }
OPTIONAL { ?dataset void:subset ?subset . }
OPTIONAL { ?dataset dcterms:description ?dctDescription . }
OPTIONAL { ?dataset dcterms:license ?license . }
OPTIONAL { {?dataset prov:wasDerivedFrom ?derivedFrom . }
UNION { ?dataset prov:hadPrimarySource ?primarySource . }
UNION { ?dataset prov:wasQuotedFrom ?quotedFrom . }
UNION { ?dataset prov:wasRevisionOf ?revisionOf . }
}
OPTIONAL { ?dataset void:dataDump ?dataDump . }
OPTIONAL { ?dataset void:triples ?tripleNo . }
OPTIONAL { {?dataset foaf:homepage ?homepage . }
UNION { ?dataset dcat:landingPage ?landingPage . } }
}" .