Difference between revisions of "University Logos"

From BITPlan cr Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
= The logo image Wikidata Property =
 +
''graphic mark or emblem commonly used by commercial enterprises, organizations and products''
 +
* https://www.wikidata.org/wiki/Property:P154
 +
* https://www.wikidata.org/wiki/Property_talk:P154
 +
* https://www.wikidata.org/wiki/Property_talk:P154#Logos_with_non_CC_license
 +
 +
= Example: University Logos =
 +
<source lang='bash'>
 +
sparqlquery -qp wikidata.yaml -qn UniversityLogos -f mediawiki
 +
</source>
 +
 +
=== query ===
 
<source lang='sparql'>
 
<source lang='sparql'>
 
# University Logos
 
# University Logos
 
# WF 2023-03-11
 
# WF 2023-03-11
 
SELECT ?item ?itemLabel ?logo
 
SELECT ?item ?itemLabel ?logo
WHERE  
+
WHERE
 
{
 
{
 
   ?item wdt:P31 wd:Q3918.
 
   ?item wdt:P31 wd:Q3918.
Line 9: Line 21:
 
   FILTER(LANG(?itemLabel)="en")
 
   FILTER(LANG(?itemLabel)="en")
 
   ?item wdt:P154 ?logo
 
   ?item wdt:P154 ?logo
}  
+
}
 
ORDER BY ?itemLabel
 
ORDER BY ?itemLabel
 +
 
</source>
 
</source>
[https://query.wikidata.org/#%23%20University%20Logos%0A%23%20WF%202023-03-11%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Flogo%0AWHERE%20%0A%7B%0A%20%20%3Fitem%20wdt%3AP31%20wd%3AQ3918.%0A%20%20%3Fitem%20rdfs%3Alabel%20%3FitemLabel.%0A%20%20FILTER%28LANG%28%3FitemLabel%29%3D%22en%22%29%0A%20%20%3Fitem%20wdt%3AP154%20%3Flogo%0A%7D%20%0AORDER%20BY%20%3FitemLabel try it!]
+
 
 +
[https://query.wikidata.org/#%23%20University%20Logos%0A%23%20WF%202023-03-11%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Flogo%0AWHERE%0A%7B%0A%20%20%3Fitem%20wdt%3AP31%20wd%3AQ3918.%0A%20%20%3Fitem%20rdfs%3Alabel%20%3FitemLabel.%0A%20%20FILTER%28LANG%28%3FitemLabel%29%3D%22en%22%29%0A%20%20%3Fitem%20wdt%3AP154%20%3Flogo%0A%7D%0AORDER%20BY%20%3FitemLabel%0A try it!]
 +
=== result ===
 +
{| class="wikitable" style="text-align: left;"
 +
|+ <!-- caption -->
 +
|-
 +
! item                                      !! itemLabel                                                                                      !! logo
 +
|-
 +
| http://www.wikidata.org/entity/Q4649771  || AAB University                                                                                || http://commons.wikimedia.org/wiki/Special:FilePath/Kolegji%20AAB.png
 +
|-
 +
| http://www.wikidata.org/entity/Q18349393  || ABES Institute of Technology                                                                  || http://commons.wikimedia.org/wiki/Special:FilePath/ABES%20Institute%20of%20Technology%20Logo.jpg
 +
|-
 +
| http://www.wikidata.org/entity/Q4654207  || ASERI – Postgraduate School of Economics and International Relations                          || http://commons.wikimedia.org/wiki/Special:FilePath/ASERI%20Logo.jpg
 +
|-
 +
| http://www.wikidata.org/entity/Q601956    || Aalborg University                                                                            || http://commons.wikimedia.org/wiki/Special:FilePath/Universit%C3%A4t%20Aalborg%20Logo.svg
 +
|-
 +
| http://www.wikidata.org/entity/Q2591673  || Aalto University School of Arts, Design and Architecture                                      || http://commons.wikimedia.org/wiki/Special:FilePath/Aalto%20University%20School%20of%20Art%20and%20Design.svg
 +
|-
 +
| http://www.wikidata.org/entity/Q4670157  || Abu Dhabi University                                                                          || http://commons.wikimedia.org/wiki/Special:FilePath/Abu%20Dhabi%20University%20logo.svg
 +
|-
 +
| http://www.wikidata.org/entity/Q2822225  || Academy of Art University                                                                      || http://commons.wikimedia.org/wiki/Special:FilePath/AcademyArtUnivLogo.png
 +
|-
 +
|...
 +
|-
 +
| http://www.wikidata.org/entity/Q1412435  || Óbuda University                                                                              || http://commons.wikimedia.org/wiki/Special:FilePath/%C3%93budai%20Egyetem%20cimere.jpg
 +
|-
 +
| http://www.wikidata.org/entity/Q6082132  || İstanbul Topkapı University                                                                    || http://commons.wikimedia.org/wiki/Special:FilePath/%C4%B0stanbul%20Topkap%C4%B1%20%C3%9Cniversitesi%20logo.svg
 +
|-
 +
| http://www.wikidata.org/entity/Q1784353  || Šiauliai University                                                                            || http://commons.wikimedia.org/wiki/Special:FilePath/Siauliai%20university%20logo.jpg
 +
|-
 +
| http://www.wikidata.org/entity/Q653439    || Ștefan cel Mare University of Suceava                                                          || http://commons.wikimedia.org/wiki/Special:FilePath/%C8%98tefan%20cel%20Mare%20University%20of%20Suceava%20logo.svg
 +
|}

Latest revision as of 09:45, 19 May 2023

The logo image Wikidata Property

graphic mark or emblem commonly used by commercial enterprises, organizations and products

Example: University Logos

sparqlquery -qp wikidata.yaml -qn UniversityLogos -f mediawiki

query

# University Logos
# WF 2023-03-11
SELECT ?item ?itemLabel ?logo
WHERE
{
  ?item wdt:P31 wd:Q3918.
  ?item rdfs:label ?itemLabel.
  FILTER(LANG(?itemLabel)="en")
  ?item wdt:P154 ?logo
}
ORDER BY ?itemLabel

try it!

result

item itemLabel logo
http://www.wikidata.org/entity/Q4649771 AAB University Kolegji%20AAB.png
http://www.wikidata.org/entity/Q18349393 ABES Institute of Technology ABES%20Institute%20of%20Technology%20Logo.jpg
http://www.wikidata.org/entity/Q4654207 ASERI – Postgraduate School of Economics and International Relations ASERI%20Logo.jpg
http://www.wikidata.org/entity/Q601956 Aalborg University http://commons.wikimedia.org/wiki/Special:FilePath/Universit%C3%A4t%20Aalborg%20Logo.svg
http://www.wikidata.org/entity/Q2591673 Aalto University School of Arts, Design and Architecture http://commons.wikimedia.org/wiki/Special:FilePath/Aalto%20University%20School%20of%20Art%20and%20Design.svg
http://www.wikidata.org/entity/Q4670157 Abu Dhabi University http://commons.wikimedia.org/wiki/Special:FilePath/Abu%20Dhabi%20University%20logo.svg
http://www.wikidata.org/entity/Q2822225 Academy of Art University AcademyArtUnivLogo.png
...
http://www.wikidata.org/entity/Q1412435 Óbuda University %C3%93budai%20Egyetem%20cimere.jpg
http://www.wikidata.org/entity/Q6082132 İstanbul Topkapı University http://commons.wikimedia.org/wiki/Special:FilePath/%C4%B0stanbul%20Topkap%C4%B1%20%C3%9Cniversitesi%20logo.svg
http://www.wikidata.org/entity/Q1784353 Šiauliai University Siauliai%20university%20logo.jpg
http://www.wikidata.org/entity/Q653439 Ștefan cel Mare University of Suceava http://commons.wikimedia.org/wiki/Special:FilePath/%C8%98tefan%20cel%20Mare%20University%20of%20Suceava%20logo.svg