Created
January 14, 2017 11:38
-
-
Save HRezaei/b14aa1216eff9030f5d0222e4d488fe7 to your computer and use it in GitHub Desktop.
Retrieves Days of Solar Calendar in wikidata, try it here: http://tinyurl.com/ztk8fq3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX entity: <http://www.wikidata.org/entity/> | |
SELECT * WHERE { | |
?subject wdt:P361 entity:Q950135. | |
?subject rdfs:label ?label. | |
# SERVICE wikibase:label { bd:serviceParam wikibase:language "persian" . } | |
FILTER (langMatches(lang(?label), "FA")) | |
} | |
LIMIT 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To find ID of an entity: https://www.wikidata.org/w/api.php?action=wbsearchentities&search=[ENTITY NAME]&language=fa
To retrieve data of an entity: https://www.wikidata.org/w/api.php?action=wbgetentities&ids=[ENTITY ID]