Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
191 lines (170 sloc) 3.25 KB
### ORI API Get Resource as N-Quads
GET https://id.openraadsinformatie.nl/44477 HTTP/1.1
content-type: application/n-quads
### ORI API Get Resource as Turtle
GET https://id.openraadsinformatie.nl/44477 HTTP/1.1
content-type: text/turtle
### Elastic simple request
POST https://api.openraadsinformatie.nl/v1/elastic/ori_*/_search? HTTP/1.1
content-type: application/json
{
"query": {
"simple_query_string": {
"fields": ["text", "title", "description", "name"],
"default_operator": "or",
"query": "zoek"
}
},
"size": 10,
"_source": {
"includes": [
"*"
],
"excludes": []
},
"from": 0,
"sort": [
{
"_score": {
"order": "desc"
}
}
]
}
### Elastic with highlights
POST https://api.openraadsinformatie.nl/v1/elastic/ori_*/_search? HTTP/1.1
content-type: application/json
{
"query": {
"simple_query_string": {
"fields": ["text", "title", "description", "name"],
"default_operator": "or",
"query": "politie"
}
},
"highlight": {
"pre_tags": [
"<mark>"
],
"post_tags": [
"</mark>"
],
"fields": {
"text": {},
"title": {},
"name": {},
"description": {}
},
"fragment_size": 100,
"number_of_fragments": 3
},
"size": 10,
"_source": {
"includes": [
"*"
],
"excludes": []
},
"from": 0,
"sort": [
{
"_score": {
"order": "desc"
}
}
]
}
### Elastic Filter Municipality using terms
GET http://ori.argu.co/api/ori_*/_search? HTTP/1.1
content-type: application/json
{
"query": {
"bool": {
"must": [
[
{
"simple_query_string": {
"fields": [
"text",
"title",
"description",
"name"
],
"default_operator": "or",
"query": "zoeken"
}
}
],
{
"terms": {
"_index": [
"ori_alkmaar_20190507105200"
]
}
}
]
}
},
"size": 10
}
### Elastic single Municipality using index with wildcard in URL
GET http://ori.argu.co/api/ori_alkmaar_*/_search? HTTP/1.1
content-type: application/json
{
"query": {
"simple_query_string": {
"fields": ["text", "title", "description", "name"],
"default_operator": "or",
"query": "zoek"
}
},
"size": 10
}
### Elastic filter by date
POST https://api.openraadsinformatie.nl/v1/elastic/ori_*/_search? HTTP/1.1
content-type: application/json
{
"query": {
"bool": {
"must": [
[
{
"simple_query_string": {
"fields": [
"text",
"title",
"description",
"name"
],
"default_operator": "or",
"query": "zoek"
}
}
],
{
"range": {
"date_modified": {
"gte": "2019-01-01",
"lte": "2019-05-24"
}
}
}
]
}
},
"size": 10,
"_source": {
"includes": [
"*"
],
"excludes": []
},
"from": 0,
"sort": [
{
"_score": {
"order": "desc"
}
}
]
}
You can’t perform that action at this time.