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

Urdu fonts are missing #82

Open
Pruthivrajan opened this issue Aug 20, 2020 · 1 comment
Open

Urdu fonts are missing #82

Pruthivrajan opened this issue Aug 20, 2020 · 1 comment

Comments

@Pruthivrajan
Copy link
Collaborator

Pruthivrajan commented Aug 20, 2020

I was using this code in SPARQL for building multilinguality dictionary. Where i am supposed to get UrduLabel terms in Urudu Language , but my UrduLabel terms are in English.

SELECT ?wikidata ?wikidataLabel ?wikipedia ?wikidataAltLabel ?wikidataDescription ?wikidataformule ?wikidatapicture ?hindi ?hindiLabel ?hindialtlabel ?hindiwikipedia ?tamil ?tamilLabel ?tamilaltlabel ?tamilwikipedia ?sanskrit ?sanskritLabel ?sanskritaltLabel ?sanskritwikipedia ?spanish ?spanishLabel ?spanishaltLabel ?spanishwikipedia ?urdu ?urduLabel ?urdualtLabel ?urduwikipedia  WHERE {
  ?wikidata wdt:P31 wd:Q12140;
    wdt:P274 ?wikidataformule;
    wdt:P117 ?wikidatapicture.
   OPTIONAL { ?wikipedia schema:about ?wikidata; schema:isPartOf <https://en.wikipedia.org/> }
   OPTIONAL { ?hindiwikipedia schema:about ?wikidata; schema:isPartOf <https://hi.wikipedia.org/> }
   OPTIONAL { ?tamilwikipedia schema:about ?wikidata; schema:isPartOf <https://ta.wikipedia.org/> }
  OPTIONAL { ?sanskritwikipedia schema:about ?wikidata; schema:isPartOf <https://sa.wikipedia.org/> }
  OPTIONAL { ?spanishwikipedia schema:about ?wikidata; schema:isPartOf <https://es.wikipedia.org/> }
  OPTIONAL { ?urduwikipedia schema:about ?wikidata; schema:isPartOf <https://ur.wikipedia.org/> }
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en".

## Selecting the prefered label 
    ?wikidata skos:altLabel ?wikidataAltLabel ; rdfs:label ?wikidataLabel; schema:description  ?wikidataDescription          
  } 
   SERVICE wikibase:label {
    bd:serviceParam wikibase:language "hi".
## Selecting the prefered label
    ?wikidata skos:altLabel ?hindialtlabel .
    ?wikidata rdfs:label ?hindiLabel .
    ?wikidata schema:description ?hindi ;
  } 
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "ta".
## Selecting the prefered label
    ?wikidata skos:altLabel ?tamilaltlabel .
    ?wikidata rdfs:label ?tamilLabel .
    ?wikidata schema:description ?tamil ;
  } 
SERVICE wikibase:label {
    bd:serviceParam wikibase:language "sa".
## Selecting the prefered label
    ?wikidata skos:altLabel ?sanskritaltlabel .
    ?wikidata rdfs:label ?sanskritLabel .
    ?wikidata schema:description ?sanskrit ;
  } 
SERVICE wikibase:label {
    bd:serviceParam wikibase:language "es".
## Selecting the prefered label
    ?wikidata skos:altLabel ?spanishaltlabel .
    ?wikidata rdfs:label ?spanishLabel .
    ?wikidata schema:description ?spanish ;
  } 
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "ur".
## Selecting the prefered label
    ?wikidata skos:altLabel ?urdualtlabel .
    ?wikidata rdfs:label ?urduLabel .
    ?wikidata schema:description ?urdu ;
  } 
}

Example : urduLabel : Thiamin
I have commited this to the repository : https://raw.githubusercontent.com/petermr/openVirus/master/dictionaries/drug/drug.MultiL(1).sparql.xml

@petermr
Copy link
Owner

petermr commented Sep 28, 2020

This is a bug in Wikidata. The items in "ur" do not contain Urdu names/labels and have the EN language label for "description"

Let's take this to Wikidata collaborators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants