Hi Everyone,We are preparing a new open-source edition of Virtuoso that introduces a feature specifically designed to serve this community.
This feature provides syntax-level compatibility with the SERVICE wikibase:label extension, enabling queries written for Wikidata’s Wikidata Query Service to run seamlessly on Virtuoso.
In practical terms, this means developers can reuse existing SPARQL queries that rely on SERVICE wikibase:label—without needing to rewrite label-handling logic—while benefiting from Virtuoso’s performance, sophistication, and deployment flexibility.
*Example Query:* PREFIX wikibase: <http://wikiba.se/ontology#> PREFIX bd: <http://www.bigdata.com/rdf#> PREFIX mwapi: <http://www.mediawiki.org/ontology#API/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?entity ?label WHERE { SERVICE wikibase:mwapi { bd:serviceParam wikibase:api "Search" . bd:serviceParam mwapi:srsearch "machine learning" . ?entity wikibase:apiOutput mwapi:title . } # Fetch label from Wikidata (requires federated query or local data) OPTIONAL { ?entity rdfs:label ?label . FILTER(LANG(?label) = "en") } } LIMIT 5 Live Query Results Page Links[1] Query Definition <https://wikidata.demo.openlinksw.com/sparql?default-graph-uri=urn%3Awikidata%3Alatest&qtxt=PREFIX%20wikibase%3A%20%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23%3E%0APREFIX%20bd%3A%20%3Chttp%3A%2F%2Fwww.bigdata.com%2Frdf%23%3E%0APREFIX%20mwapi%3A%20%3Chttp%3A%2F%2Fwww.mediawiki.org%2Fontology%23API%2F%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0A%0ASELECT%20%3Fentity%20%3Flabel%20WHERE%20%7B%0A%20%20%20%20SERVICE%20wikibase%3Amwapi%20%7B%0A%20%20%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Aapi%20%22Search%22%20.%0A%20%20%20%20%20%20%20%20bd%3AserviceParam%20mwapi%3Asrsearch%20%22machine%20learning%22%20.%0A%20%20%20%20%20%20%20%20%3Fentity%20wikibase%3AapiOutput%20mwapi%3Atitle%20.%0A%20%20%20%20%7D%0A%0A%20%20%20%20%23%20Fetch%20label%20from%20Wikidata%20(requires%20federated%20query%20or%20local%20data)%0A%20%20%20%20OPTIONAL%20%7B%20%3Fentity%20rdfs%3Alabel%20%3Flabel%20.%20FILTER(LANG(%3Flabel)%20%3D%20%22en%22)%20%7D%0A%7D%20LIMIT%205&format=text%2Fhtml&timeout=30000&signal_void=on&signal_unconnected=on>
[2] Query Results Page <https://wikidata.demo.openlinksw.com/sparql?default-graph-uri=urn%3Awikidata%3Alatest&query=PREFIX+wikibase%3A+%3Chttp%3A%2F%2Fwikiba.se%2Fontology%23%3E%0D%0APREFIX+bd%3A+%3Chttp%3A%2F%2Fwww.bigdata.com%2Frdf%23%3E%0D%0APREFIX+mwapi%3A+%3Chttp%3A%2F%2Fwww.mediawiki.org%2Fontology%23API%2F%3E%0D%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0A%0D%0ASELECT+%3Fentity+%3Flabel+WHERE+%7B%0D%0A++++SERVICE+wikibase%3Amwapi+%7B%0D%0A++++++++bd%3AserviceParam+wikibase%3Aapi+%22Search%22+.%0D%0A++++++++bd%3AserviceParam+mwapi%3Asrsearch+%22machine+learning%22+.%0D%0A++++++++%3Fentity+wikibase%3AapiOutput+mwapi%3Atitle+.%0D%0A++++%7D%0D%0A%0D%0A++++%23+Fetch+label+from+Wikidata+%28requires+federated+query+or+local+data%29%0D%0A++++OPTIONAL+%7B+%3Fentity+rdfs%3Alabel+%3Flabel+.+FILTER%28LANG%28%3Flabel%29+%3D+%22en%22%29+%7D%0D%0A%7D+LIMIT+5%0D%0A&format=text%2Fhtml&timeout=30000&signal_void=on&signal_unconnected=on>
-- Regards, Kingsley Idehen Founder & CEO OpenLink Software Home Page:http://www.openlinksw.com Community Support:https://community.openlinksw.com Social Media: LinkedIn:http://www.linkedin.com/in/kidehen Twitter :https://twitter.com/kidehen
_______________________________________________ Wikidata mailing list -- [email protected] Public archives at https://lists.wikimedia.org/hyperkitty/list/[email protected]/message/YRDVAYBFC2ZQ6FSERKKX4OBY3K2YXQLF/ To unsubscribe send an email to [email protected]
