This query extracts all used classes from the instances present in the dataset with a type declaration. LIMIT and OFFSET are used because most of the SPARQL endpoint put an upperbound to the results.
select distinct ?class where { ?s a ?class . } LIMIT ?limit OFFSET ?offset
Extracts the count of the individuals of a given class. The ?class parameter is dynamically bound to each of class in extracted class list.
select (count (distinct ?s) as ?count) where { ?s a ?class . }
This query extracts all the properties associated with any of the individuals of a given class. The ?class parameter is dynamically bound to each of class in extracted class list.
select ?property (count (distinct ?s) as ?count) where { ?s a ?class; ?property ?o . } group by ?property order by desc(?count)
This query extracts looks at individuals of a given class and extracts other classes those individuals belong to. The ?class parameter is dynamically bound to each of class in the extracted class list.
select ?anotherClass (count (distinct ?s) as ?count) where { ?s a ?class; a ?anotherClass . FILTER (?anotherClass != ?class) } group by ?anotherClass order by desc(?count)
This query extracts looks at individuals of a given class and extracts other classes those individuals belong to. The ?class parameter is dynamically bound to each of class in the extracted class list.
select ?anotherClass (count (distinct ?s) as ?count) where { ?s a ?class; a ?anotherClass . FILTER (?anotherClass != ?class) } group by ?anotherClass order by desc(?count)
This query extracts all used properties in the triples of the dataset. LIMIT and OFFSET are used because most of the SPARQL endpoint put an upperbound to the results.
select distinct ?p where { ?s ?p ?o . } LIMIT ?limit OFFSET ?offset
Extracts the count of triples that contain a given property. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select (count (*) as ?c) where { ?s ?property ?o }
This query extracts the number of URI subjects of a given property in a dataset. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select (count (*) as ?c) where { ?s ?property ?o FILTER (isUri(?s)) }
This query extracts the number of blank node subjects of a given property in a dataset. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select (count (*) as ?c) where { ?s ?property ?class FILTER (isBlank(?s)) }
This query looks at the subjects of all the triples that have the given property as the predicate and extracts their type if there is a type definition available. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select (count (?s) as ?c) ?class where { ?s ?property ?o ; a ?class . } group by ?class order by desc(?c)
This query extracts the number of URI objects of a given property in a dataset. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select (count (*) as ?c) where { ?s ?property ?o FILTER (isUri(?o)) }
This query extracts the number of blank node objects of a given property in a dataset. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select (count (*) as ?c) where { ?s ?property ?o FILTER (isBlank(?o)) }
This query extracts the number of literal objects of a given property in a dataset. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select (count (*) as ?c) where { ?s ?property ?o FILTER (isLiteral(?o)) }
This query extracts the number of numeric objects of a given property in a dataset. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select (count (*) as ?c) where { ?s ?property ?o FILTER (isNumeric(?o)) }
This query extracts the number of integer objects of a given property in a dataset. The ?property parameter is dynamically bound to each of properties in the extracted property list.
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> select (count (?o) as ?c) where { ?s ?property ?o filter ( datatype(?o) = xsd:integer ) }
This query extracts the number of objects of double data type of a given property in a dataset. The ?property parameter is dynamically bound to each of properties in the extracted property list.
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> select ?o where { ?s ?property ?o filter ( datatype(?o) = xsd:double ) }
This query extracts the number of datatime objects of a given property in a dataset. The ?property parameter is dynamically bound to each of properties in the extracted property list.
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> select (count (?o) as ?c) where { ?s ?property ?o FILTER ( (datatype(?o)) = xsd:dateTime ) }
This query extracts a sample of objects declared as integers but actually not integers. The ?property parameter is dynamically bound to each of properties in the extracted property list.
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> select ?o where { ?s ?property ?o filter ( datatype(?o) = xsd:integer ) filter ( coalesce(xsd:integer(str(?o)), '!') = '!') } LIMIT ?limit
This query extracts a sample of objects declared as doubles but actually not doubles. The ?property parameter is dynamically bound to each of properties in the extracted property list.
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> select ?o where { ?s ?property ?o filter ( datatype(?o) = xsd:double ) filter ( coalesce(xsd:double(str(?o)), '!') = '!') } LIMIT ?limit
This query extracts a sample of objects declared as datetime but actually not datetime. The ?property parameter is dynamically bound to each of properties in the extracted property list.
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> select ?o where { ?s ?property ?o filter ( datatype(?o) = xsd:dateTime ) filter ( coalesce(xsd:dateTime(str(?o)), '!') = '!') } LIMIT ?limit
This query extracts a sample of a given size (?limit) of minimum values of numeric objects. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select distinct ?o where { ?s ?property ?o FILTER (isNumeric(?o)) } ORDER BY ?o LIMIT ?limit
This query extracts a sample of a given size (?limit) of maximum values of numeric objects. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select distinct ?o where { ?s ?property ?o FILTER (isNumeric(?o)) } ORDER BY DESC(?o) LIMIT ?limit
This query extracts the average of numeric objects. The ?property parameter is dynamically bound to each of properties in the extracted property list.
select (avg(?o) as ?a) where { ?s ?property ?o FILTER (isNumeric(?o)) }s
This query extracts all used classes from the instances present in the dataset with a type declaration. LIMIT and OFFSET are used because most of the SPARQL endpoint put an upperbound to the results.
select distinct ?class where { ?s a ?class . } LIMIT ?limit OFFSET ?offset
Extracts the count of the individuals of a given class. The ?class parameter is dynamically bound to each of class in extracted class list.
select (count (distinct ?s) as ?count) where { ?s a ?class . }
This query extracts all the properties associated with any of the individuals of a given class. The ?class parameter is dynamically bound to each of class in extracted class list.
select ?property (count (distinct ?s) as ?count) where { ?s a ?class; ?property ?o . } group by ?property order by desc(?count)