Closed stuppie closed 8 years ago
Populate an "inverse query" submenu with all properties that link to the object (inverse of the properties submenu) Not sure this is the most efficient way to do this, but it works...
SELECT * WHERE {
{
SELECT distinct ?item ?itemLabel ?prop ?propLabel ?vals (datatype (?vals) AS ?type) WHERE {
hint:Query hint:optimizer "None" .
values ?item {wd:Q17861702 }
?item ?p ?vals .
?prop wikibase:directClaim ?p .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
} UNION {
hint:Query hint:optimizer "None" .
values ?vals {wd:Q17861702 }
?item ?p ?vals .
?prop wikibase:directClaim ?p .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
}
To do
Remove all properties that return strings from the properties submenu and move them into the Node TableProperly store lists of ID in node tableChange the name of edges to: (subject) <-> (relationship/predicate) <-> (object)Lookup needs to lookup the name alsoAdd a linkout to wikidata for each nodePopulate an "inverse query" submenu with all properties that link to the object (inverse of the properties submenu)Query the number of items a node's property links to and place that in the property query submenuExtra Features