Sindice Live API

Live API calls examples:

Live API allows you to retrieve triples from web documents using document URI or CONTENT. To get triples you must specify url=URI of the document or content=CONTENT of the document.
To do reasoning and get implicit triples too you must add parameter doReasoning=1.

GET example:

http://api.sindice.com/v2/live?url=http%3A%2F%2Fwordnet.rkbexplorer.com%2Fid%2Fword-Galway
http://api.sindice.com/v2/live?url=http%3A%2F%2Fwordnet.rkbexplorer.com%2Fid%2Fword-Galway&doReasoning=1
To get only implicit data:
http://api.sindice.com/v2/live?url=http%3A%2F%2Fwordnet.rkbexplorer.com%2Fid%2Fword-Galway&doReasoning=1&explicit=0&ontologies=0&extractors=0
To get only implicit data and ontologies:
http://api.sindice.com/v2/live?url=http%3A%2F%2Fwordnet.rkbexplorer.com%2Fid%2Fword-Galway&doReasoning=1&explicit=0

List of all possible parameters:

Name Description Possible values Default value
url url to the document string NA
content content of the document string NA
doReasoning enable disable reasoning over extracted data 0/1 0
explicit if set to 1 explicit triples are included in output 0/1 1
implicit if set to 1 inferred triples are included in output 0/1 1
maxExplicit truncates number of returned explicit triples number -1
maxImplicit truncates number of returned implicit triples number -1
ontologies if set to 1 ontologies used during reasoning process are included in output 0/1 1
extractors if set to 1 a list of used extractors is included in output 0/1 1

POST example:

For POST use the same parameters. At least one url or content must be provided.


Result are in following JSON format.
{
"status":"ok",
"contentType":"application/rdf+xml"
"extractorResults":{
   "status":"ok",
   "metadata":{
      "ontologies":{
         "bindings":[
            {
               "s":{
                  "value":"http://www.w3.org/2002/07/owl.rdf",
                  "type":"uri"
               },
               "p":{
                  "value":"http://www.w3.org/2002/07/owl#imports",
                  "type":"uri"
               },
               "o":{
                  "value":"http://www.w3.org/2000/01/rdf-schema",
                  "type":"uri"
               }
            },
			...
			...
			...
         ],
         "ordered":false,
         "distinct":false
      },
      "explicit":{
         "bindings":[
            {
               "s":{
                  "value":"http://www.deri.ie/about/team/member/xxx/",
                  "type":"uri"
               },
               "p":{
                  "value":"http://www.w3.org/1999/xhtml/vocab#meta",
                  "type":"uri"
               },
               "o":{
                  "value":"http://www.deri.ie/about/team/member/xxx/
                  fileadmin/scripts/foaf.php?id=xxx",
                  "type":"uri"
               }
            },
			...
			...
			...
         ],
         "ordered":false,
         "distinct":false,
         "left":0
      },
      "inferred":{
         "bindings":[
            {
               "s":{
                  "value":"http://www.deri.ie/about/team/member/xxx/
                  fileadmin/scripts/foaf.php?id=xxx",
                  "type":"uri"
               },
               "p":{
                  "value":"http://purl.org/dc/elements/1.1/title",
                  "type":"uri"
               },
               "o":{
                  "value":"FOAF",
                  "type":"literal"
               }
			...
			...
			...
            },
         ],
         "ordered":false,
         "distinct":false,
         "left":0
      },
      "url":"http://www.deri.ie/about/team/member/xxx/"
   }
  }
}