On 10/10/16 5:31 PM, Thad Guidry wrote: > Kingsley, > > use shortcut syntax instead. Also look at how the many examples show > doing tihngs. > http://tinyurl.com/hkv8z7m
Thad, Not getting the point you are trying to articulate i.e., the solution isn't comprised strictly of <https://www.wikidata.org/wiki/Property:P1709> <https://www.wikidata.org/wiki/Property:P1709> relations. I am assuming <https://www.wikidata.org/wiki/Property:P1709> <https://www.wikidata.org/wiki/Property:P1709> identifies equivalentClass relations i.e., <https://www.wikidata.org/wiki/Property:P1709> <https://www.wikidata.org/wiki/Property:P1709> owl:equivalentProperty owl:equivalentClass . You should be able to articulate the equivalent of the following, using SPARQL against Wikidata: SELECT DISTINCT ?s ?relation ?o WHERE { ?s owl:equivalentClass ?o. BIND (owl:equivalentClass AS ?relation) FILTER (isIRI(?s)) FILTER (isIRI(?o)) } LIMIT 100 Live Solution Link: http://lod.openlinksw.com/sparql?default-graph-uri=&query=SELECT+DISTINCT+%3Fs+%3Frelation+%3Fo%0D%0AWHERE+%7B+%3Fs+owl%3AequivalentClass+%3Fo.%0D%0A++++++++BIND+%28owl%3AequivalentClass+AS+%3Frelation%29%0D%0A++++++++FILTER+%28isIRI%28%3Fs%29%29+%0D%0A++++++++FILTER+%28isIRI%28%3Fo%29%29%0D%0A++++++%7D%0D%0ALIMIT+100&format=text%2Fx-html%2Btr&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on Kingsley > > On Mon, Oct 10, 2016 at 1:50 PM Kingsley Idehen > <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote: > > On 10/9/16 1:34 PM, Thad Guidry wrote: >> Kingsley, >> >> The mappings are already in Wikidata (we still have a few >> properties left to map, but the classes are done, except for a >> few in pending.schema.org <http://pending.schema.org>. You can >> just query them in some fashion such as >> this: http://tinyurl.com/h9vjqd8 > > Thad, > > Shouldn't the following query return all Classes participating in > an <https://www.wikidata.org/wiki/Property:P1709> > <https://www.wikidata.org/wiki/Property:P1709> relation? : > > SELECT ?s ?relation ?o > WHERE { ?s <https://www.wikidata.org/wiki/Property:P1709> > <https://www.wikidata.org/wiki/Property:P1709> ?o. > BIND (<https://www.wikidata.org/wiki/Property:P1709> > <https://www.wikidata.org/wiki/Property:P1709> AS ?relation) > } > LIMIT 100 > > Query Link: > > https://query.wikidata.org/#%0A%0ASELECT%20%3Fs%20%3Frelation%20%3Fo%0AWHERE%20%7B%20%3Fs%20%3Chttps%3A%2F%2Fwww.wikidata.org%2Fwiki%2FProperty%3AP1709%3E%20%3Fo.%20%0A%20%20%20%20%20%20%20%20BIND%20%28%3Chttps%3A%2F%2Fwww.wikidata.org%2Fwiki%2FProperty%3AP1709%3E%20AS%20%3Frelation%29%20%0A%20%20%20%20%20%20%7D%20%0ALIMIT%20100%0A > > If not, can you formulate something closer to that output which > makes matters easier should you not have an RDF dump available etc.. > > > Kingsley > >> >> On Sun, Oct 9, 2016 at 11:09 AM Kingsley Idehen >> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote: >> >> On 10/8/16 5:04 PM, Thad Guidry wrote: >>> >>> Class mappings are almost complete Kingsley. We were trying >>> to get Wikidata to the point where it is easy for folks to >>> do trivial queries right inside WDQS as part of WD Goals for >>> 2016. >>> >> >> Thad, >> >> Here is a post (brought up to date in last day) that >> demonstrates owl:equivalentClass reasoning and inference. >> Once I have a link to the new mappings I will integrate into >> this demo. >> >> Note, this particular LOD Cloud Cache instance has 30 >> Billion+ triples against which the owl:equivalentClass >> inference is being applied, at query evaluation time. >> >> [1] >> >> http://kidehen.blogspot.com/2014/02/class-equivalence-based-reasoning.html >> >> >> Kingsley >>> >>> On Sat, Oct 8, 2016, 2:38 PM Kingsley Idehen >>> <kide...@openlinksw.com <mailto:kide...@openlinksw.com>> wrote: >>> >>> On 10/6/16 2:57 PM, Thad Guidry wrote: >>>> Hello team :) >>>> >>>> So while I'm helping with the Wikidata - Schema.org >>>> mappings, a request came in to expose subcategories of >>>> an existing Wikipedia category. >>>> >>>> For example, say I start with this >>>> topic: https://www.wikidata.org/wiki/Q27119725 Parking >>>> facilities >>>> >>>> The topic's main category is shown as "Category:Parking >>>> facilities" and that has links to Wikipedia, >>>> specifically a Wikipedia category link, and where the >>>> WP category page has subcategories that I would like to >>>> expose somehow in whichever way is *easiest* currently >>>> with our tools, apis, etc. >>>> >>>> Can it all be done in SPARQL against some services that >>>> already expose WP subcategories given a specific >>>> category ? Or is there an API that does this already ? >>>> other tools that might expose WP categories ? >>>> >>>> The IDEAL GOAL is to query 'equivalent class' = >>>> schema.org/ParkingFacility >>>> <http://schema.org/ParkingFacility> and get back the WP >>>> categories *in one shot or query or api call.* >>>> >>>> http://schema.org/ParkingFacility >>>> >>>> * >>>> >>>> Parking facilities in India >>>> >>>> <https://en.wikipedia.org/wiki/Category:Parking_facilities_in_India> >>>> * >>>> Parking facilities in the United States >>>> >>>> <https://en.wikipedia.org/wiki/Category:Parking_facilities_in_the_United_States> >>>> >>>> * >>>> Aircraft hangars >>>> <https://en.wikipedia.org/wiki/Category:Aircraft_hangars> >>>> >>>> * >>>> Garages (parking) >>>> >>>> <https://en.wikipedia.org/wiki/Category:Garages_%28parking%29> >>>> * >>>> Railway depots >>>> <https://en.wikipedia.org/wiki/Category:Railway_depots> >>>> >>>> >>>> Any gurus ? >>> >>> Hi Thad, >>> >>> If there are owl:equivalentClass mappings in some Linked >>> Data Space, and the SPARQL service associated with said >>> Data Space supports owl:equivalentClass reasoning, then >>> the answer to your question is yes. >>> >>> What unknown right now is the class mappings between >>> Wikidata and Schema.org. If a dump of those exist, the >>> rest is trivial :) >>> >>> -- >>> Regards, >>> >>> Kingsley Idehen >>> Founder & CEO >>> OpenLink Software (Home Page: http://www.openlinksw.com) >>> >>> Weblogs (Blogs): >>> Legacy Blog: http://www.openlinksw.com/blog/~kidehen/ >>> <http://www.openlinksw.com/blog/%7Ekidehen/> >>> Blogspot Blog: http://kidehen.blogspot.com >>> Medium Blog: https://medium.com/@kidehen >>> >>> 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/dataspace/person/kidehen#this >>> : >>> http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this >>> >>> _______________________________________________ >>> Wikidata mailing list >>> Wikidata@lists.wikimedia.org >>> <mailto:Wikidata@lists.wikimedia.org> >>> https://lists.wikimedia.org/mailman/listinfo/wikidata >>> >>> >>> >>> _______________________________________________ >>> Wikidata mailing list >>> Wikidata@lists.wikimedia.org >>> <mailto:Wikidata@lists.wikimedia.org> >>> https://lists.wikimedia.org/mailman/listinfo/wikidata >> >> >> -- >> Regards, >> >> Kingsley Idehen >> Founder & CEO >> OpenLink Software (Home Page: http://www.openlinksw.com) >> >> Weblogs (Blogs): >> Legacy Blog: http://www.openlinksw.com/blog/~kidehen/ >> <http://www.openlinksw.com/blog/%7Ekidehen/> >> Blogspot Blog: http://kidehen.blogspot.com >> Medium Blog: https://medium.com/@kidehen >> >> 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/dataspace/person/kidehen#this >> : >> http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this >> >> _______________________________________________ >> Wikidata mailing list >> Wikidata@lists.wikimedia.org >> <mailto:Wikidata@lists.wikimedia.org> >> https://lists.wikimedia.org/mailman/listinfo/wikidata >> >> >> >> _______________________________________________ >> Wikidata mailing list >> Wikidata@lists.wikimedia.org <mailto:Wikidata@lists.wikimedia.org> >> https://lists.wikimedia.org/mailman/listinfo/wikidata > > > -- > Regards, > > Kingsley Idehen > Founder & CEO > OpenLink Software (Home Page: http://www.openlinksw.com) > > Weblogs (Blogs): > Legacy Blog: http://www.openlinksw.com/blog/~kidehen/ > <http://www.openlinksw.com/blog/%7Ekidehen/> > Blogspot Blog: http://kidehen.blogspot.com > Medium Blog: https://medium.com/@kidehen > > 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/dataspace/person/kidehen#this > : > http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this > > _______________________________________________ > Wikidata mailing list > Wikidata@lists.wikimedia.org <mailto:Wikidata@lists.wikimedia.org> > https://lists.wikimedia.org/mailman/listinfo/wikidata > > > > _______________________________________________ > Wikidata mailing list > Wikidata@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikidata -- Regards, Kingsley Idehen Founder & CEO OpenLink Software (Home Page: http://www.openlinksw.com) Weblogs (Blogs): Legacy Blog: http://www.openlinksw.com/blog/~kidehen/ Blogspot Blog: http://kidehen.blogspot.com Medium Blog: https://medium.com/@kidehen 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/dataspace/person/kidehen#this : 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