-
Notifications
You must be signed in to change notification settings - Fork 25
Semantic Annotation
Include sample queries about how to use the semantic annotation API via CURL commands.
In general this API supports standard elasticsearch URI search.
-
To get maximum 10 points from specified stream returned as n3 format, sorted by "timestamp:asc"
curl http://<host>:5000/citypulse/datapoints/mS4tr3MCSF-U2S-k6fW_kA
-
To get maximum 10 points from specified stream returned as xml format, sorted by "timestamp:asc"
curl http://<host>:5000/citypulse/datapoints/mS4tr3MCSF-U2S-k6fW_kA?format=xml
-
To get maximum 10 points from specified stream returned as JSON-LD format, sorted by "timestamp:asc"
curl http://<host>:5000/citypulse/datapoints/mS4tr3MCSF-U2S-k6fW_kA?format=json-ld
-
To get maximum 10 points from specified stream returned as JSON-LD format, sorted by "timestamp:asc"
curl http://<host>:5000/citypulse/datapoints/mS4tr3MCSF-U2S-k6fW_kA?format=json-ld
-
To get specified number of points with respect to offset from specified stream returned as n3 format, sorted by "timestamp:asc"
curl http://<host>:5000/citypulse/datapoints/mS4tr3MCSF-U2S-k6fW_kA?from=10&size=20
-
To get maximum 10 points from specified stream within a time range returned as n3 format, sorted by "timestamp:asc"
curl -G http://<host>:5000/citypulse/datapoints/mS4tr3MCSF-U2S-k6fW_kA --data-urlencode "q=timestamp:[2014-10-22 TO 2014-12-28]"