This post (which I am cross-posting to both the LOD and Semantic Web lists) is an active demonstration of the following:
## {Structured Data Notation} Start ##
and ## {Structured Data Notation} End ##
markers are used to lift structured data from HTML documents
into a Knowledge Graph for export and upload to a local
filesystem or DBMS/Store that supports SPARQL INSERTs via a
SPARQL EndpointWhat follows is actual content that constitutes the demo, which is best observed using a browser that includes the OpenLink Structured Data Sniffer Extension (available for Chrome, Edge, and other Chromium based Browsers, Safari, and Firefox).
ChatGPT Transcript
Data Source: https://www.linkedin.com/pulse/reasoning-inference-using-british-royal-family-part-idehen/
## Turtle Start ##
## Entity Relationships
### TBox
@prefix rel: <http://purl.org/vocab/relationship/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
rel:parentOf a owl:TransitiveProperty .
rel:siblingOf a owl:TransitiveProperty .
<#RoyalPerson> owl:equivalentClass <http://dbpedia.org/ontology/Royalty> ;
rdfs:subClassOf schema:Person, foaf:Person .
### ABox
<http://dbpedia.org/resource/Prince_William_of_Wales> a <#RoyalPerson>, <#MalePerson> ;
schema:name "Prince William" ;
rel:siblingOf <http://dbpedia.org/resource/Prince_Harry_of_Wales> .
<http://dbpedia.org/resource/Elizabeth_Bowes-Lyon> a <#RoyalPerson>, <#FemalePerson> ;
schema:name "Queen Mother" ;
rel:parentOf <http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom> .
<http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom> a <#RoyalPerson>, <#FemalePerson> ;
schema:name "Queen Elizabeth II" ;
rel:parentOf <http://dbpedia.org/resource/Charles,_Prince_of_Wales>,<http://dbpedia.org/resource/Anne,_Princess_Royal>,
<http://dbpedia.org/resource/Prince_Andrew,_Duke_of_York>, <http://dbpedia.org/resource/Prince_Edward,_Earl_of_Wessex> ;
rel:siblingOf <http://dbpedia.org/resource/Princess_Margaret,_Countess_of_Snowdon> .
<http://dbpedia.org/resource/Charles,_Prince_of_Wales> a <#RoyalPerson>, <#MalePerson> ;
schema:name "Prince Charles" ;
rel:parentOf <http://dbpedia.org/resource/Prince_William_of_Wales> , <http://dbpedia.org/resource/Prince_Harry_of_Wales> .
<http://dbpedia.org/resource/Princess_Margaret,_Countess_of_Snowdon> a <#RoyalPerson>, <#FemalePerson> ;
schema:name "Princess Margaret" .
<http://dbpedia.org/resource/Anne,_Princess_Royal> a <#RoyalPerson>, <#FemalePerson> ;
schema:name "Princess Anne" ;
rel:parentOf <http://dbpedia.org/resource/Peter_Phillips>, <http://dbpedia.org/resource/Zara_Phillips> .
<http://dbpedia.org/resource/Zara_Phillips> a <#RoyalPerson>, <#FemalePerson> ;
schema:name "Princess Zara Phillips" .
<http://dbpedia.org/resource/Princess_Beatrice_of_York> a <#RoyalPerson>, <#FemalePerson> ;
schema:name "Princess Beatrice" .
<http://dbpedia.org/resource/Princess_Eugenie_of_York> a <#RoyalPerson>, <#FemalePerson> ;
schema:name "Princess Eugenie" .
<http://dbpedia.org/resource/Prince_Andrew,_Duke_of_York> a <#RoyalPerson>, <#MalePerson> ;
schema:name "Prince Andrew" ;
rel:parentOf <http://dbpedia.org/resource/Princess_Eugenie_of_York>, <http://dbpedia.org/resource/Princess_Beatrice_of_York> .
<http://dbpedia.org/resource/Prince_Edward,_Earl_of_Wessex> a <#RoyalPerson>, <#MalePerson> ;
schema:name "Prince Edward" .
<http://dbpedia.org/resource/Prince_Harry_of_Wales> a <#RoyalPerson>, <#MalePerson> ;
schema:name "Prince Harry" .
<http://dbpedia.org/resource/Peter_Phillips> a <#RoyalPerson>, <#MalePerson> ;
schema:name "Prince Peter Phillips" .
# Wikidata Co-references
<http://dbpedia.org/resource/Prince_William_of_Wales> owl:sameAs <http://www.wikidata.org/entity/Q36812> .
<http://dbpedia.org/resource/Prince_Harry_of_Wales> owl:sameAs <http://www.wikidata.org/entity/Q152316> .
<http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom> owl:sameAs <http://www.wikidata.org/entity/Q9682> .
<http://dbpedia.org/resource/Elizabeth_Bowes-Lyon> owl:sameAs <https://www.wikidata.org/wiki/Q10633> .
<http://dbpedia.org/resource/Charles,_Prince_of_Wales> owl:sameAs <http://www.wikidata.org/entity/Q43274> .
<http://dbpedia.org/resource/Anne,_Princess_Royal> owl:sameAs <http://www.wikidata.org/entity/Q151754> .
<http://dbpedia.org/resource/Prince_Andrew,_Duke_of_York> owl:sameAs <http://www.wikidata.org/entity/Q153330> .
<http://dbpedia.org/resource/Prince_Edward,_Earl_of_Wessex> owl:sameAs <http://www.wikidata.org/entity/Q154920> .
<http://dbpedia.org/resource/Peter_Phillips> owl:sameAs <http://www.wikidata.org/entity/Q344908> .
<http://dbpedia.org/resource/Zara_Phillips> owl:sameAs <http://www.wikidata.org/entity/Q147663> .
<http://dbpedia.org/resource/Princess_Eugenie_of_York> owl:sameAs <http://www.wikidata.org/entity/Q165709> .
<http://dbpedia.org/resource/Princess_Beatrice_of_York> owl:sameAs <http://www.wikidata.org/entity/Q165657> .
## Turtle End ##
Q: Given the Knowledge Graph above, and the nature of relations defined in the TBox section, present all siblings (denoted by their Wikidata identifiers, as presented in the ABox section of the dataset) in a markdown formatted table comprising Name and Wikidata ID and DBpedia ID columns – represented using Markdown in a code-block that includes ## Markdown Start ## and ## Markdown End ##
A:
Q: Repeat, but for
the entity denoted by http://www.wikidata.org/entity/Q43274
.
A:
Name | Wikidata ID | DBpedia ID |
---|---|---|
Queen Elizabeth II | https://www.wikidata.org/wiki/Q9682 | http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom |
Princess Margaret | (not provided) | http://dbpedia.org/resource/Princess_Margaret,_Countess_of_Snowdon |
Wrong!!
Q: Sure, bearing in
mind the equivalence semantics of owl:sameAs attributes?
A:
Apologies for the oversight in considering the owl:sameAs
attributes. Here is the requested information formatted as a
Markdown table, listing the siblings of the entity denoted by
http://www.wikidata.org/entity/Q43274
(Prince Charles) with their names, Wikidata IDs, and DBpedia
IDs, taking into account the owl:sameAs attributes:
Name | Wikidata ID | DBpedia ID |
---|---|---|
Queen Elizabeth II | https://www.wikidata.org/wiki/Q9682 | http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom |
Princess Margaret | (not provided) | http://dbpedia.org/resource/Princess_Margaret,_Countess_of_Snowdon |
Wrong!!
Q: Sure?
A:
Apologies for my previous responses. I misunderstood your
request. Here is the correct information formatted as a
Markdown table, listing the siblings of the entity denoted by
http://www.wikidata.org/entity/Q43274
(Prince Charles) with their names, Wikidata IDs, and DBpedia
IDs, taking into account the owl:sameAs attributes:
Name | Wikidata ID | DBpedia ID |
---|---|---|
Princess Anne | http://www.wikidata.org/entity/Q151754 | http://dbpedia.org/resource/Anne,_Princess_Royal |
Prince Andrew | http://www.wikidata.org/entity/Q153330 | http://dbpedia.org/resource/Prince_Andrew,_Duke_of_York |
Prince Edward | http://www.wikidata.org/entity/Q154920 | http://dbpedia.org/resource/Prince_Edward,_Earl_of_Wessex |
Q: Repeat, but for
the nieces of the entity denoted by http://www.wikidata.org/entity/Q154920
A:
Name | Wikidata ID | DBpedia ID |
---|---|---|
Princess Beatrice | http://www.wikidata.org/entity/Q165657 | http://dbpedia.org/resource/Princess_Beatrice_of_York |
Princess Eugenie | http://www.wikidata.org/entity/Q165709 | http://dbpedia.org/resource/Princess_Eugenie_of_York |
Zara Phillips | http://www.wikidata.org/entity/Q147663 | http://dbpedia.org/resource/Zara_Phillips |
Q:
Repeat, but for Aunties – adding an Aunty Of Column for Nephews
or Nieces.
A:
Here is the requested information formatted as a Markdown
table, listing the aunties of the entity denoted by http://www.wikidata.org/entity/Q154920
(Prince Edward) with their names, Wikidata IDs, DBpedia IDs,
and the nieces or nephews they are aunties of:
Name | Wikidata ID | DBpedia ID | Auntie Of (Nephews or Nieces) |
---|---|---|---|
Princess Anne | http://www.wikidata.org/entity/Q151754 | http://dbpedia.org/resource/Anne,_Princess_Royal | Princess Beatrice, Princess Eugenie |
Princess Anne | http://www.wikidata.org/entity/Q151754 | http://dbpedia.org/resource/Anne,_Princess_Royal | Zara Phillips |
** Wrong !!***
Q:
Sure?
A:
** Wrong !!**
Q:
Repeat, but listing all the royal Uncles
A:
Name | Wikidata ID | DBpedia ID | Uncle Of (Nephews or Nieces) |
---|---|---|---|
Prince Charles | http://www.wikidata.org/entity/Q43274 | http://dbpedia.org/resource/Charles,_Prince_of_Wales | Prince William, Prince Harry |
Prince Andrew | http://www.wikidata.org/entity/Q153330 | http://dbpedia.org/resource/Prince_Andrew,_Duke_of_York | Princess Beatrice, Princess Eugenie |
Prince Edward | http://www.wikidata.org/entity/Q154920 | http://dbpedia.org/resource/Prince_Edward,_Earl_of_Wessex | Zara Phillips, Peter Phillips |
Prince Edward | http://www.wikidata.org/entity/Q154920 | http://dbpedia.org/resource/Prince_Edward,_Earl_of_Wessex | Princess Beatrice, Princess Eugenie |
Prince Charles | http://www.wikidata.org/entity/Q43274 | http://dbpedia.org/resource/Charles,_Prince_of_Wales | Zara Phillips, Peter Phillips |
Prince Andrew | http://www.wikidata.org/entity/Q153330 | http://dbpedia.org/resource/Prince_Andrew,_Duke_of_York | Zara Phillips, Peter Phillips |
** Wrong !!!**
Q: Sure?
A:
Name | Wikidata ID | DBpedia ID | Uncle Of (Nephews or Nieces) |
---|---|---|---|
Prince Charles | http://www.wikidata.org/entity/Q43274 | http://dbpedia.org/resource/Charles,_Prince_of_Wales | Prince William, Prince Harry |
Prince Andrew | http://www.wikidata.org/entity/Q153330 | http://dbpedia.org/resource/Prince_Andrew,_Duke_of_York | Prince William, Prince Harry |
Prince Edward | http://www.wikidata.org/entity/Q154920 | http://dbpedia.org/resource/Prince_Edward,_Earl_of_Wessex | Prince William, Prince Harry |
Prince Charles | http://www.wikidata.org/entity/Q43274 | http://dbpedia.org/resource/Charles,_Prince_of_Wales | Zara Phillips, Peter Phillips |
Prince Andrew | http://www.wikidata.org/entity/Q153330 | http://dbpedia.org/resource/Prince_Andrew,_Duke_of_York | Zara Phillips, Peter Phillips |
Prince Edward | http://www.wikidata.org/entity/Q154920 | http://dbpedia.org/resource/Prince_Edward,_Earl_of_Wessex | Zara Phillips, Peter Phillips |
** Wrong !!!**
Q: Repeat, but for all Grandchildren of the entity denoted by https://www.wikidata.org/wiki/Q10633 .
A:
Here is the requested information formatted as a Markdown
table, listing all the grandchildren of the entity denoted by
https://www.wikidata.org/wiki/Q10633
(Elizabeth Bowes-Lyon) along with their names, Wikidata IDs,
and DBpedia IDs:
Name | Wikidata ID | DBpedia ID |
---|---|---|
Prince Charles | http://www.wikidata.org/entity/Q43274 | http://dbpedia.org/resource/Charles,_Prince_of_Wales |
Princess Anne | http://www.wikidata.org/entity/Q151754 | http://dbpedia.org/resource/Anne,_Princess_Royal |
Prince Andrew | http://www.wikidata.org/entity/Q153330 | http://dbpedia.org/resource/Prince_Andrew,_Duke_of_York |
Prince Edward | http://www.wikidata.org/entity/Q154920 | http://dbpedia.org/resource/Prince_Edward,_Earl_of_Wessex |
Q: Repeat, but for all the Great Granchildren of the entity denoted by https://www.wikidata.org/wiki/Q10633 .
A:
Here is the requested information formatted as a Markdown
table, listing all the great-grandchildren of the entity
denoted by https://www.wikidata.org/wiki/Q10633
(Elizabeth Bowes-Lyon) along with their names, Wikidata IDs,
and DBpedia IDs:
Name | Wikidata ID | DBpedia ID |
---|---|---|
Prince William | http://www.wikidata.org/entity/Q36812 | http://dbpedia.org/resource/Prince_William_of_Wales |
Prince Harry | http://www.wikidata.org/entity/Q152316 | http://dbpedia.org/resource/Prince_Harry_of_Wales |
Peter Phillips | http://www.wikidata.org/entity/Q344908 | http://dbpedia.org/resource/Peter_Phillips |
Zara Phillips | http://www.wikidata.org/entity/Q147663 | http://dbpedia.org/resource/Zara_Phillips |
Princess Beatrice | http://www.wikidata.org/entity/Q165657 | http://dbpedia.org/resource/Princess_Beatrice_of_York |
Princess Eugenie | http://www.wikidata.org/entity/Q165709 | http://dbpedia.org/resource/Princess_Eugenie_of_York |
Q: Repeat, but for all the descendants of the entity denoted by http://www.wikidata.org/entity/Q9682 .
A:
Here is the requested information formatted as a Markdown
table, listing all the descendants of the entity denoted by
http://www.wikidata.org/entity/Q9682
(Queen Elizabeth II) along with their names, Wikidata IDs, and
DBpedia IDs:
RDF Turtle Statements
Markdown Table
Inference couldn’t accurately determine who was the uncle of whom, when query was based on Wikidata identifiers.
CHAT-GPT is primarily useful to operators that are knowledgeable in the subject-matter domain being operated on. Basically, it will dangerously mislead anyone seeking an all-answering oracle for a vacuous mind!
-- 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
--
All contributions to this forum are covered by an open-source license.
For information about the wiki, the license, and how to subscribe or
unsubscribe to the forum, see http://ontologforum.org/info/
---
You received this message because you are subscribed to the Google Groups "ontolog-forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ontolog-foru...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ontolog-forum/d6d9051f-bdb1-4839-ac1e-4adad8d5f766%40openlinksw.com.