YASHE icon indicating copy to clipboard operation
YASHE copied to clipboard

Embedded Wikidata Comments

Open mistermboy opened this issue 4 years ago • 0 comments

By a shortcut or something like that, add Wikidata comments automatically after an entity or property. Eg:

Before:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>

<human> {
  wdt:P19 . ?;                 
  wdt:P569 . ? ;              
  wdt:P735 . * ;               
  wdt:P734 . * ;               
  wdt:P106 . * ;               
  wdt:P27 @<country> *; 	  
  wdt:P22 @<human> *;       
  wdt:P25 @<human> *;          
  wdt:P3373 @<human> *;         
  wdt:P26 @<human> *;          
  wdt:P40 @<human> *;          
  wdt:P1038 @<human> *;       
}

After:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>

<human> {
  wdt:P19 . ?;                  # place of birth
  wdt:P569 . ? ;                # date of birth
  wdt:P735 . * ;                # given name
  wdt:P734 . * ;                # family name
  wdt:P106 . * ;                # occupation
  wdt:P27 @<country> *; 	    # country of citizenship
  wdt:P22 @<human> *;           # father
  wdt:P25 @<human> *;           # mother
  wdt:P3373 @<human> *;         # sibling
  wdt:P26 @<human> *;           # spouse
  wdt:P40 @<human> *;           # children
  wdt:P1038 @<human> *;         # relatives
}

mistermboy avatar Jun 15 '20 07:06 mistermboy