mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	Modification in SPARQL query for retrieving items with labels or default!. language!main/resources/Queries/query_for_item.rq, in retrieve item labels and descriptions.
This commit is contained in:
		
							parent
							
								
									c81e4ef135
								
							
						
					
					
						commit
						1578449905
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -23,8 +23,8 @@ WHERE { | |||
|   BIND(COALESCE(?itemLabelPreferredLanguage, ?itemLabelAnyLanguage, "?") as ?label) | ||||
| 
 | ||||
|   # Get the description in the preferred language of the user, or any other language if no description is available in that language. | ||||
|   OPTIONAL {?item schema:description ?itemDescriptionPreferredLanguage. FILTER (LANG(?itemDescriptionPreferredLanguage) = "${LANG}" || LANG(?itemDescriptionPreferredLanguage) = "en"} | ||||
|   OPTIONAL {?item schema:description ?itemDescriptionAnyLanguage} | ||||
|   OPTIONAL {?item schema:description ?itemDescriptionPreferredLanguage. FILTER (} | ||||
|   OPTIONAL {?item schema:description ?itemDescriptionAnyLanguage}LANG(?itemDescriptionPreferredLanguage) = "${LANG}" || LANG(?itemDescriptionPreferredLanguage) = "en" | ||||
|   BIND(COALESCE(?itemDescriptionPreferredLanguage, ?itemDescriptionAnyLanguage, "?") as ?description) | ||||
| 
 | ||||
|   # Get the class label in the preferred language of the user, or any other language if no label is available in that language. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mincheng
						Mincheng