On 10/17/16 2:45 PM, Thad Guidry wrote:
Nice Kingsley! Great work. So now....the bad news
and where we need
further help still :)
I do want to let everyone know however that within Classes and
Properties...there are a slight few mappings that were taken as an
opinionated view
I.E. they may slightly conflict with other views of the mappings in
Languages that are not English. Or might not seem correctly mapped or
aligned.
But I think most folks know that around here and deal with that
everyday in Wikipedia and Wikidata.
Still, we encourage all communities to review the Schema.org-WD
mappings and voice any issues, errors, mistakes, or alternative
viewpoints in this Wikidata mailing list or the
Schema.org mailing
list or our
Schema.org Github issues.
Thad
+ThadGuidry <https://www.google.com/+ThadGuidry>
Thad,
These mappings can end up in their own special named graph, in a quad
store. Net effect, massaging and improvements can occur forever without
turning anything on its head. For instance, I can use the mappings named
graph as the basis for an inference rule that's only invoked
conditionally (in the case of Virtuoso that would via a pragma).
I will update or make a new blog post with live examples.
Anyway, we should be set :)
Kingsley
On Mon, Oct 17, 2016 at 1:26 PM Kingsley Idehen
<kidehen(a)openlinksw.com <mailto:kidehen@openlinksw.com>> wrote:
On 10/11/16 2:48 PM, Thad Guidry wrote:
Kingsley,
You might ask others on the list who could help more with
providing the WD -
Schema.org mappings or get them into a format
that you want...or an RDF dump file.
I just don't have the knowledge to assist you with that via
SPARQL. (i.e., I am not a SPARQL guru)
-Thad
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org <mailto:Wikidata@lists.wikimedia.org>
https://lists.wikimedia.org/mailman/listinfo/wikidata
Thad,
Having figured out how the Wikidata SPARQL endpoint works, here
are the mappings between Wikidata and
Schema.org using
owl:equivalentClass and owl:equivalentProperty relations.
Basically, I am using SPARQL-FED to produce the desired result
using a variety of RDF related document types (JSON-LD.
RDF-Turtle, HTML5+Microdata, and XHTML+RDFa).
We will load this into the DBpedia DBMS which will make this data
available via SPARQL and relevant Linked Data pages, now that the
new 2016-04 release is live [1].
##### Equivalent Property Relations Generation #####
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
<http://www.wikidata.org/prop/direct/>
CONSTRUCT {?s owl:equivalentProperty ?o}
WHERE { SERVICE <http://query.wikidata.org/sparql>
<http://query.wikidata.org/sparql>
{
SELECT ?s ?equivalentProperty ?o
WHERE {
?s wdt:P1628 ?o .
BIND (wdt:P1628 as ?equivalentProperty)
FILTER( REGEX(STR(?o), "schema.org
<http://schema.org>"))
}
}
}
Live Links:
[1]
http://linkeddata.uriburner.com/sparql?default-graph-uri=&query=PREFIX+…
-- JSON-LD
[2]
http://linkeddata.uriburner.com/sparql?default-graph-uri=&query=PREFIX+…
-- RDF-Turtle
[3]
http://linkeddata.uriburner.com/sparql?default-graph-uri=&query=PREFIX+…
[4]
http://linkeddata.uriburner.com/sparql?default-graph-uri=&query=PREFIX+…
-- XHTML+RDFa
##### Equivalent Class Relations Generation #####
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
<http://www.wikidata.org/prop/direct/>
CONSTRUCT {?s ?equivalentClass ?o}
WHERE { SERVICE <http://query.wikidata.org/sparql>
<http://query.wikidata.org/sparql>
{
SELECT ?s ?equivalentClass ?o
WHERE { ?s wdt:P1709 ?o .
BIND ( wdt:P1709 as ?equivalentClass)
FILTER( REGEX(STR(?o), "schema.org
<http://schema.org>"))
}
}
}
## Explicit Remapping to owl:equivalentClass relations
## which enables better reasoning and inference oriented data
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
<http://www.wikidata.org/prop/direct/>
CONSTRUCT {?s owl:equivalentClass ?o}
WHERE { SERVICE <http://query.wikidata.org/sparql>
<http://query.wikidata.org/sparql>
{
SELECT ?s ?equivalentClass ?o
WHERE { ?s wdt:P1709 ?o .
BIND ( wdt:P1709 as ?equivalentClass)
FILTER( REGEX(STR(?o), "schema.org
<http://schema.org>"))
}
}
}
Live Links:
[1]
http://linkeddata.uriburner.com/sparql?default-graph-uri=&query=PREFIX+…
-- JSON-LD
[2]
http://linkeddata.uriburner.com/sparql?default-graph-uri=&query=PREFIX+…
-- RDF-Turtle
[3]
http://linkeddata.uriburner.com/sparql?default-graph-uri=&query=PREFIX+…
-- HTML+Microdata
[4]
http://linkeddata.uriburner.com/sparql?default-graph-uri=&query=PREFIX+…
-- XHTML+RDFa
Links:
[1] DBpedia 2016-04 Announcement
--
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(a)lists.wikimedia.org <mailto:Wikidata@lists.wikimedia.org>
https://lists.wikimedia.org/mailman/listinfo/wikidata
_______________________________________________
Wikidata mailing list
Wikidata(a)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