Re: Demo -- Combining the power of Markdown, Nanotation, and Linked Data Principles for Data Access, Connectivity, and Flow

Wow!  





On Sat, Apr 29, 2023 at 9:12 PM Kingsley Idehen <kidehen@openlinksw.com>  wrote:
This post (which I am cross-posting to both the LOD and Semantic Web lists) is
an active demonstration of the following:

 1. Markdown to HTML (prior to email send action) by my email client
    (Thunderbird)
 2. Nanotation  – whereby ## {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 Endpoint
 3. Linked Data Principles – naming entities, entity types, and entity
    relationship types using hyperlinks and describing them using RDF statements

What 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:

MARKDOWN START
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  Queen Elizabeth II  
http://www.wikidata.org/entity/Q9682  
http://dbpedia.org/resource/Elizabeth_II_of_the_United_Kingdom  Princess
Margaret  (not provided)  
http://dbpedia.org/resource/Princess_Margaret,_Countess_of_Snowdon  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  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 Eugenie  
http://www.wikidata.org/entity/Q165709  
http://dbpedia.org/resource/Princess_Eugenie_of_York  Princess Beatrice  
http://www.wikidata.org/entity/Q165657  
http://dbpedia.org/resource/Princess_Beatrice_of_York  MARKDOWN END
  Q: Repeat, but for the entity denoted by http://www.wikidata.org/entity/Q43274 
 .
A:

MARKDOWN START
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  MARKDOWN END
  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:

MARKDOWN START
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  MARKDOWN END
  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:

MARKDOWN START
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  MARKDOWN END
  Q: Repeat, but for the nieces of the entity denoted by 
http://www.wikidata.org/entity/Q154920
A:

MARKDOWN START
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  MARKDOWN END
  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:

MARKDOWN START
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  MARKDOWN END
  ** Wrong !!***

  Q:
Sure? 

  A:
** Wrong !!**

  Q:
Repeat, but listing all the royal Uncles

  A:

MARKDOWN START
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  MARKDOWN END
  ** Wrong !!!**

  Q: Sure?

  A:

MARKDOWN START
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  MARKDOWN END
  ** 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:

MARKDOWN START
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  MARKDOWN END
  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:

MARKDOWN START
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  MARKDOWN END
  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:

MARKDOWN START
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  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  Prince

Received on Saturday, 29 April 2023 21:23:33 UTC