mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Typo fixing
This commit is contained in:
parent
11b74953b7
commit
f1021f7de8
3 changed files with 5 additions and 5 deletions
|
|
@ -154,7 +154,7 @@ public class Place implements Parcelable {
|
|||
item.getPic().getValue(),
|
||||
// Checking if the place exists or not
|
||||
(item.getDestroyed().getValue() == "") && (item.getEndTime().getValue() == "")
|
||||
&& (item.getdateOfOfficialClosure().getValue() == ""),
|
||||
&& (item.getDateOfOfficialClosure().getValue() == ""),
|
||||
entityId);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class NearbyResultItem(
|
|||
@field:SerializedName("description") private val description: ResultTuple?,
|
||||
@field:SerializedName("endTime") private val endTime: ResultTuple?,
|
||||
@field:SerializedName("monument") private val monument: ResultTuple?,
|
||||
@field:SerializedName("dateOfOfficialClosure") private val dateOfOfficialClosure: ResultTuple?,
|
||||
@field:SerializedName("DateOfOfficialClosure") private val DateOfOfficialClosure: ResultTuple?,
|
||||
) {
|
||||
fun getItem(): ResultTuple = item ?: ResultTuple()
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ class NearbyResultItem(
|
|||
|
||||
fun getDestroyed(): ResultTuple = destroyed ?: ResultTuple()
|
||||
|
||||
fun getdateOfOfficialClosure(): ResultTuple = dateOfOfficialClosure ?: ResultTuple()
|
||||
fun getDateOfOfficialClosure(): ResultTuple = DateOfOfficialClosure ?: ResultTuple()
|
||||
|
||||
fun getDescription(): ResultTuple = description ?: ResultTuple()
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ SELECT
|
|||
(SAMPLE(?wikipediaArticle) AS ?wikipediaArticle)
|
||||
(SAMPLE(?commonsArticle) AS ?commonsArticle)
|
||||
(SAMPLE(?commonsCategory) AS ?commonsCategory)
|
||||
(SAMPLE(?dateOfOfficialClosure) AS ?dateOfOfficialClosure)
|
||||
(SAMPLE(?DateOfOfficialClosure) AS ?DateOfOfficialClosure)
|
||||
WHERE {
|
||||
SERVICE <https://query.wikidata.org/sparql> {
|
||||
values ?item {
|
||||
|
|
@ -46,7 +46,7 @@ WHERE {
|
|||
# Get existence
|
||||
OPTIONAL {?item wdt:P576 ?destroyed}
|
||||
OPTIONAL {?item wdt:P582 ?endTime}
|
||||
OPTIONAL {?item wdt:P3999 ?dateOfOfficialClosure}
|
||||
OPTIONAL {?item wdt:P3999 ?DateOfOfficialClosure}
|
||||
|
||||
# Get Commons category
|
||||
OPTIONAL {?item wdt:P373 ?commonsCategory}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue