Skip to content

Commit a1601c5

Browse files
committed
rest-api-agent: Added an example of a a stack that includes grlc.
1 parent 4ec3d49 commit a1601c5

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"services": {
3+
"includes": [
4+
"grlc"
5+
],
6+
"excludes": [
7+
"rml-mapper",
8+
"yarrrml-parser",
9+
"citytiler",
10+
"ontop",
11+
"adminer",
12+
"gdal",
13+
"citydbimpexp"
14+
]
15+
},
16+
"volumes": {
17+
"grlc-config": "grlc"
18+
}
19+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#+ transform: {
2+
#+ "band": "?band",
3+
#+ "names": "?name"
4+
#+ }
5+
6+
prefix dbo: <http://dbpedia.org/ontology/>
7+
prefix dbp: <http://dbpedia.org/property/>
8+
prefix foaf: <http://xmlns.com/foaf/0.1/>
9+
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
10+
prefix schema: <http://schema.org/>
11+
12+
SELECT ?band ?name WHERE {
13+
?band rdf:type dbo:Band ;
14+
foaf:name ?name
15+
} LIMIT 100
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"proto": {
3+
"id": "?band",
4+
"name": "$foaf:name$required$langTag:hide$lang:en$var:?name",
5+
"genre": {
6+
"id": "$dbo:genre$required$var:?genre",
7+
"name": "foaf:name$lang:en$langTag:hide$var:?genre_name"
8+
}
9+
},
10+
"$where": [
11+
"?band rdf:type dbo:Band"
12+
],
13+
"$prefixes": {
14+
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
15+
"dbo": "http://dbpedia.org/ontology/",
16+
"schema": "http://schema.org/",
17+
"foaf": "http://xmlns.com/foaf/0.1/"
18+
},
19+
"$limit": 100,
20+
"grlc": {
21+
"summary": "Grlc query expressed as json",
22+
"endpoint": "https://dbpedia.org/sparql",
23+
"tags": [
24+
"json-queries"
25+
],
26+
"method": "GET",
27+
"defaults": {
28+
"type": "http://dbpedia.org/ontology/Band"
29+
}
30+
}
31+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[repo_info]
2+
repo_title = Some title
3+
api_description = Description of my API
4+
contact_name = My name
5+
contact_url = https://mypage/
6+
licence_url = https://mylicence/

0 commit comments

Comments
 (0)