On 10/4/19 10:57 AM, Kingsley Idehen wrote: > On 10/4/19 3:58 AM, Thomas Francart wrote: >> Hello >> >> I understand the wikidata SPARQL label service only fetches the >> labels, but does not allow to search/filter on them; labels are also >> available in regulare rdfs:label on which a FILTER can be made. >> However I would like to do full-text search over labels, to e.g. feed >> an autocomplete search field, actually just like the usual top-right >> wikidata search field does. I would also be interested to combine >> this with a criteria on "instance of", to search only on instances of >> a given class. >> >> Can I do that efficiently using the Wikidata SPARQL service ? or is >> there a separate API I could use ? (exemple welcome) >> >> Thanks >> Thomas >> >> -- >> * >> * >> *Thomas Francart* -*SPARNA* >> Web de _données_ | Architecture de l'_information_ | Accès aux >> _connaissances_ >> blog : blog.sparna.fr <http://blog.sparna.fr>, site : sparna.fr >> <http://sparna.fr>, linkedin : fr.linkedin.com/in/thomasfrancart >> <https://fr.linkedin.com/in/thomasfrancart> >> tel : +33 (0)6.71.11.25.97, skype : francartthomas > > > Hi Thomas, > > Remember, we also publish a SPARQL Endpoint for Wikdata access [1]. > You can repeat your tests there too. > > Example (note that the retry loop indicates resources limits of this > particular instance setup): > > Search on "Paris" > > http://wikidata.demo.openlinksw.com/fct/facet.vsp?qxml=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20%3F%3E%3Cquery%20inference%3D%22%22%20same-as%3D%22%22%20view3%3D%22%22%20s-term%3D%22%22%20c-term%3D%22%22%3E%3Ctext%3EParis%3C%2Ftext%3E%3Cview%20type%3D%22text-d%22%20limit%3D%2220%22%20offset%3D%22%22%20%2F%3E%3C%2Fquery%3E > <http://lod.openlinksw.com/fct/facet.vsp?qxml=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20%3F%3E%3Cquery%20inference%3D%22%22%20same-as%3D%22%22%20view3%3D%22%22%20s-term%3D%22%22%20c-term%3D%22%22%3E%3Ctext%3EParis%3C%2Ftext%3E%3Cview%20type%3D%22text-d%22%20limit%3D%2220%22%20offset%3D%22%22%20%2F%3E%3C%2Fquery%3E> > > Config: > > OpenLink Virtuoso version 08.03.3315 as of Sep 4 2019, on Linux > (x86_64-generic-linux-glibc25), Single-Server Edition (378 GB total > memory) > > Same thing using the LOD Cloud cache instance, where data is a little > out of date also: > > http://lod.openlinksw.com/fct/facet.vsp?qxml=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20%3F%3E%3Cquery%20inference%3D%22%22%20same-as%3D%22%22%20view3%3D%22%22%20s-term%3D%22%22%20c-term%3D%22%22%3E%3Ctext%3EParis%3C%2Ftext%3E%3Cview%20type%3D%22text-d%22%20limit%3D%2220%22%20offset%3D%22%22%20%2F%3E%3C%2Fquery%3E > > Config: > > OpenLink Virtuoso version 07.20.3224 as of Dec 19 2017, on Linux > (i686-generic-linux-glibc212-64), Cluster Edition (4 server processes, > 756 GB total memory) > > Links > > [1] http://wikidata.demo.openlinksw.com/fct > > [2] http://wikidata.demo.openlinksw.com/sparql > > > -- > Regards, > > Kingsley Idehen > Founder & CEO > OpenLink Software > Home Page: http://www.openlinksw.com > Community Support: https://community.openlinksw.com > Weblogs (Blogs): > Company Blog: https://medium.com/openlink-software-blog > Virtuoso Blog: https://medium.com/virtuoso-blog > Data Access Drivers Blog: > https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers > > Personal Weblogs (Blogs): > Medium Blog: https://medium.com/@kidehen > Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/ > http://kidehen.blogspot.com > > Profile Pages: > Pinterest: https://www.pinterest.com/kidehen/ > Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen > Twitter: https://twitter.com/kidehen > Google+: https://plus.google.com/+KingsleyIdehen/about > LinkedIn: http://www.linkedin.com/in/kidehen > > Web Identities (WebID): > Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i > : > http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this >
SPARQL Query variants: Wikidata SPARQL Endpoint at http://wikidata.demo.openlinksw.com/sparql : https://wikidata.demo.openlinksw.com/sparql?default-graph-uri=&query=%0D%0Aselect+%3Fs+%3Fo+%0D%0Awhere+%0D%0A++%7B+%0D%0A++++++graph+%3Fg+%0D%0A++++++%7B+%0D%0A+++++++++%3Fs+rdfs%3Alabel+%3Fo+.%0D%0A+++++++++%3Fo+bif%3Acontains++%27%22Paris%22%27++.%0D%0A+++++++++filter+%28lang%28%3Fo%29+%3D+%22en%22%29%0D%0A++++++++%0D%0A++++++%7D%0D%0A++++%0D%0A++%7D%0D%0A%0D%0Alimit+100+&format=text%2Fhtml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&signal_void=on&signal_unconnected=on&run=+Run+Query+ -- Regards, Kingsley Idehen Founder & CEO OpenLink Software Home Page: http://www.openlinksw.com Community Support: https://community.openlinksw.com Weblogs (Blogs): Company Blog: https://medium.com/openlink-software-blog Virtuoso Blog: https://medium.com/virtuoso-blog Data Access Drivers Blog: https://medium.com/openlink-odbc-jdbc-ado-net-data-access-drivers Personal Weblogs (Blogs): Medium Blog: https://medium.com/@kidehen Legacy Blogs: http://www.openlinksw.com/blog/~kidehen/ http://kidehen.blogspot.com Profile Pages: Pinterest: https://www.pinterest.com/kidehen/ Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen Twitter: https://twitter.com/kidehen Google+: https://plus.google.com/+KingsleyIdehen/about LinkedIn: http://www.linkedin.com/in/kidehen Web Identities (WebID): Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i : http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata