Inspector 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=true.
GET example:
http://api.sindice.com/v2/live?url=http://example.comList 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 |
| doSyntaxValidation | enable disable syntax validation over document | 0/1 | 0 |
| doTriplesValidation | enable disable triples validation over extracted triples | 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 | if set truncates result explicit triples in output to given number | number | -1 (infinite) |
| maxImplicit | if set truncates result implicit triples in output to given number | number | -1 (infinite) |
| 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.
{
status:"ok",
contentType:"application/rdf+xml"
extractorResults:{
status:"ok",
url:"http://www.deri.ie/about/team/member/xxx/"
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/",
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
},
}
},
w3cMarkupValidationRes:{
checkedby:"http://validator.w3.org/",
status:"ok",
validity:"false",
charset:"utf-8",
doctype:"-//W3C//DTD XHTML 1.0 Transitional//EN",
uri:"http://example.com/"
errors:{
errorlist:[
{
message:"...",
col:"75",
source:"...",
explanation:"...",
line:"10",
messageid:"70"
},
...
...
],
errorcount:"7"
},
warnings:{
warninglist:[
],
warningcount:"0"
}
},
rdfValidationRes:{
},
w3cRdfValidationRes:{
},
commonMistakesValidationRes:{
}
}