-
Notifications
You must be signed in to change notification settings - Fork 8
Description
After the discovery of a new endpoint, it is useful to be able to get some information about it. I'd suggest to add some predefined queries for this purpose:
Lookup and count classes:
# count the classes used in the dataset
select (count(?class) as ?count) ?class
where {
?x a ?class
}
group by ?class
order by desc(?count)Lookup and count properties:
# count the properties used in the dataset
select (count(?property) as ?count) ?property
where {
?x ?property []
}
group by ?property
order by desc(?count)Lookup and count named graph triples:
# count the triples of the named graphs used in the dataset (if any)
select (count(?s) as ?count) ?graph
where {
graph ?graph { ?s ?p [] }
}
group by ?graph
order by desc(?count)The queries are expensive, so the results should be cached (perhaps with some "force" option under Configure/Refresh data).
I get a Javascript warning re. "long running query" when executing the queries on dbpedia - yet the query is executed successfully when clicking "continue". Not sure if the timeout setting could be ajusted here.
Of course, the results of the queries could be used for autosuggest; maybe even for ordering the suggestions according to the frequency of their occurence in the dataset at hand.
The feature could be integrated into the UI via a "Explore endpoint" menu besides "Configure request", perhaps simply with "Classes", "Properties" and "Named graphs".