Help talk

Difference between revisions of "SPARQL"

 
(2 intermediate revisions by 2 users not shown)
Line 38: Line 38:
  
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 +
|+ ''Assuming `wd` stands for wikidata, then `ll` could be lingualibre shortcut.''
 
! URL || Wikidata || LinguaLibre || Proposal || Would change ?
 
! URL || Wikidata || LinguaLibre || Proposal || Would change ?
 
|-  
 
|-  
| /entity/ || wd: || entity: || ll: (same)  || yes-no: just remove this allias
+
| /entity/ || wd: || entity: || ll: (same)  || no-yes: just remove this allias
 
|-
 
|-
 
| /entity/ || wd: || ll:  || ll: (same) || no
 
| /entity/ || wd: || ll:  || ll: (same) || no
Line 56: Line 57:
 
| /prop/qualifier/ || pq: || llq: || llpq: || yes
 
| /prop/qualifier/ || pq: || llq: || llpq: || yes
 
|}
 
|}
 +
 +
::{{ping|Yug}} the full list of prefixes (and not just the standard ones) for Wikidata is here: https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Full_list_of_prefixes (and obviously, it does include xsd). I'm guessing LinguaLibre Blazegraph has problably a full list of prefixes somewhere (which obviously include xsd too, otherwise Blazegraph would throw an error). I'mm guessing (more hazardously here) that Blazegraph already include basic prefixes (the ones useful for any RDF database). Cheers, [[User:VIGNERON|VIGNERON]] ([[User talk:VIGNERON|talk]]) 11:10, 9 January 2022 (UTC)

Latest revision as of 17:26, 6 July 2022

Prefixes

LinguaLibre (2021)
For information, below are the prefixes currently defined in Blazegraph. (I just pushed it on Git repo "operations".) ~ Seb35 [^_^] 15:46, 29 July 2021 (UTC)

PREFIX entity: <https://lingualibre.org/entity/>
PREFIX ll: <https://lingualibre.org/entity/>
PREFIX prop: <https://lingualibre.org/prop/direct/>
PREFIX statement: <https://lingualibre.org/entity/statement/>
PREFIX wikibase: <http://wikiba.se/ontology#>    # in both sets
PREFIX llp: <https://lingualibre.org/prop/>
PREFIX llv: <https://lingualibre.org/prop/statement/>
PREFIX llq: <https://lingualibre.org/prop/qualifier/>
PREFIX wd: <http://www.wikidata.org/entity/>    # in both sets
PREFIX wdt: <http://www.wikidata.org/prop/direct/>  # in both sets

Wikidata (2021)
According to Wikidata Query Service > Prefixes > Add standard prefixes, Wikidata's prefixes are :

PREFIX wd: <http://www.wikidata.org/entity/> # in both sets
PREFIX wdt: <http://www.wikidata.org/prop/direct/> # in both sets
PREFIX wikibase: <http://wikiba.se/ontology#> # in both sets
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>

Picked just now. Yug (talk) 20:48, 11 December 2021 (UTC)

@Seb35 & VIGNERON I'm lightly surprised to not see xsd, which is used for integer and numeral values, in neither wikidata nor Lingualibre's lists of prefix. Any idea why ?
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
(Fully aligning Lili's prefix naming convention on wikidata system could also be beneficial for quick memorization and recall.)
Yug (talk) 20:51, 11 December 2021 (UTC)
Assuming `wd` stands for wikidata, then `ll` could be lingualibre shortcut.
URL Wikidata LinguaLibre Proposal Would change ?
/entity/ wd: entity: ll: (same) no-yes: just remove this allias
/entity/ wd: ll: ll: (same) no
/prop/direct/ wdt: prop: llt: yes
/entity/statement/ statement: ?: yes
wikiba.se/ontology# wikibase: wikibase: wikibase: (same) no
/prop/ p: llp: llp: (same) no
/prop/statement/ ps: llv: llps: yes
/prop/qualifier/ pq: llq: llpq: yes
@Yug the full list of prefixes (and not just the standard ones) for Wikidata is here: https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Full_list_of_prefixes (and obviously, it does include xsd). I'm guessing LinguaLibre Blazegraph has problably a full list of prefixes somewhere (which obviously include xsd too, otherwise Blazegraph would throw an error). I'mm guessing (more hazardously here) that Blazegraph already include basic prefixes (the ones useful for any RDF database). Cheers, VIGNERON (talk) 11:10, 9 January 2022 (UTC)