SPEX is designed to introspect data within SPARQL endpoints, leveraging the self-describing nature of RDF-based data to enhance your comprehension of the underlying schema.
SELECT ?p (COUNT(?s) AS ?count)
FROM <https://lindas.admin.ch/foj/zefix>
WHERE {
{
SELECT DISTINCT ?p WHERE {
?s ?p ?o.
}
}
?s ?p ?o .
} GROUP BY ?p ORDER BY DESC(?count)
SELECT DISTINCT ?cls ?property ?linktype ?datatype
FROM <https://lindas.admin.ch/foj/zefix>
WHERE {
?subject a ?cls .
?subject ?property ?object . # <--- this is a killer
OPTIONAL {
?object a ?linktype .
}
BIND(DATATYPE(?object) AS ?datatype)
}
For this Zefix dataset the line "this is a killer" is a bit too much.
https://spex.zazuko.com/#/?url=https://lindas.admin.ch/query&graph=https://lindas.admin.ch/foj/zefix&prefixes=admin:https://schema.ld.admin.ch/&forceIntrospection=false
This is a good example to investigate "Introspection" issues. Because the Schema is very simple.
Ontology
Classes
Just a small class count ...
Predicates
Introspection
The introspection query is like this ...
For this Zefix dataset the line "this is a killer" is a bit too much.