Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded Wikidata Comments #147

Open
mistermboy opened this issue Jun 15, 2020 · 0 comments
Open

Embedded Wikidata Comments #147

mistermboy opened this issue Jun 15, 2020 · 0 comments
Assignees
Labels
difficulty-high high difficulty enhancement New feature or request priority-medium medium priority

Comments

@mistermboy
Copy link
Member

mistermboy commented Jun 15, 2020

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 mistermboy self-assigned this Jun 15, 2020
@mistermboy mistermboy added difficulty-high high difficulty enhancement New feature or request priority-medium medium priority labels Jun 15, 2020
@mistermboy mistermboy added this to To do in YASHE- Workflow via automation Jun 15, 2020
@mistermboy mistermboy moved this from To do to In progress in YASHE- Workflow Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty-high high difficulty enhancement New feature or request priority-medium medium priority
Projects
YASHE- Workflow
  
In progress
Development

No branches or pull requests

1 participant