Hello all,
Some improvements have been made by the Search team at WMF on Special:Search
<https://www.wikidata.org/wiki/Special:Search> (the page that is loaded
when you type something in the search field and press enter, for example).
- The string that you typed is highlighted in bold in the label of the
results
- The number of bytes is no longer displayed, instead you can see the
number of sitelinks and statements
- The code is now using the same indexing as completion search, which
should improve relevancy and better control over ranking
If you have any question or find a bug, feel free to ping user:Smalyshev
(WMF) <https://www.wikidata.org/wiki/User:Smalyshev_(WMF)>.
Cheers,
--
Léa Lacroix
Project Manager Community Communication for Wikidata
Wikimedia Deutschland e.V.
Tempelhofer Ufer 23-24
10963 Berlin
www.wikimedia.de
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter
der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für
Körperschaften I Berlin, Steuernummer 27/029/42207.
That's great! Thanks a lot.
By the way,
https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial#FILTER that try
to do FILTER(STRSTARTS(?humanLabel, "Mr. ")). the first one is broken
but I assume it used to work.
This is not working because there's not :
FILTER(LANG(?label) = "en").
As it's explained later in the example apparently.
Thanks again!
On 02/04/18 23:45, Jeremy Baron wrote:
so that's trying to filter the given name item not the label of the
given name item.
there's a few examples at
https://www.wikidata.org/wiki/Wikidata:SPARQL_tutorial#FILTER that try
to do FILTER(STRSTARTS(?humanLabel, "Mr. ")). the first one is broken
but I assume it used to work.
adapt the second "Mr. " example there and I get:
SELECT DISTINCT ?person ?personLabel ?givenNameLabel ?gnlabel WHERE {
?person wdt:P31 wd:Q5.
?person wdt:P735 ?givenName.
?givenName rdfs:label ?gnlabel.
FILTER(LANG(?gnlabel) = "[AUTO_LANGUAGE]").
FILTER(STRSTARTS(?gnlabel, "A"))
SERVICE wikibase:label { bd:serviceParam wikibase:language
"[AUTO_LANGUAGE],en". }
}
that times out even with LIMIT 5. but if I test with a smaller dataset
(fictional humans) it appears to be written properly:
SELECT DISTINCT ?person ?personLabel ?givenNameLabel ?gnlabel WHERE {
?person wdt:P31 wd:Q15632617.
?person wdt:P735 ?givenName.
?givenName rdfs:label ?gnlabel.
FILTER(LANG(?gnlabel) = "[AUTO_LANGUAGE]").
FILTER(STRSTARTS(?gnlabel, "A"))
SERVICE wikibase:label { bd:serviceParam wikibase:language
"[AUTO_LANGUAGE],en". }
}
http://tinyurl.com/ydzdywmw
-Jeremy
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org<mailto:Wikidata@lists.wikimedia.org>
https://lists.wikimedia.org/mailman/listinfo/wikidata
Hi to all!
I'm very new to Wikidata sparql, and I've only finished the tutorial.
My question is about filtering people on their given name.
I've tried:
SELECT DISTINCT ?person ?personLabel WHERE {
?person wdt:P31 wd:Q5.
?person wdt:P735 ?givenName.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
FILTER(STRSTARTS(?givenName, "A"))
}
LIMIT 1000
http://tinyurl.com/ydeuxopp
But there are no results (I'm filtering on the person with a given name
starting with an "A").
What am I doing wrong?
Thanks a lot in advance!
Cheers
if P31, instance of, is the first item in any page and;
a church and or a monastery in russia is a;
church = Q16970
Metochion = Q1398776
monastery = Q44613
tourist attraction = Q570116
and editors revert and say that;
Russian Orthodox Church = Q60995
Eastern Orthodox Church = Q 35032
do not belong there which there are on hundred’s of pages already, then where do they go, how can we get consensus.
and can a bot then make the changes ?
Dear Mr. or Ms.,
I thank you for your efforts. We have generated a database in RDF format including data that have been retrived from social networks (messages, users...). We would like to build a website having the same structure as Wikidata in which we can put our big data and query it using SPARQL. I ask about how Wikidata is built and works: Where data are saved... I also ask if we can use the system of Wikidata database (codes, system files, technical details..) so that we can gain time when working on our interface.
Yours Sincerely,
Houcemeddine Turki