Typo fixing

This commit is contained in:
sonalyadav 2025-04-11 10:07:06 +05:30
parent 11b74953b7
commit f1021f7de8
3 changed files with 5 additions and 5 deletions

View file

@ -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);
}

View file

@ -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()

View file

@ -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}