Page MenuHomePhabricator

Define Libris XL as an endpoint in Wikidata
Open, Stalled, Needs TriagePublic

Assigned To
None
Authored By
Salgo60
Jul 20 2018, 8:11 AM
Referenced Files
F28239014: image.png
Feb 18 2019, 6:57 AM
F25738288: image.png
Sep 9 2018, 7:52 PM
F25737059: image.png
Sep 9 2018, 7:52 PM
F24240809: image.png
Jul 28 2018, 10:05 AM
F24241879: image.png
Jul 28 2018, 10:05 AM

Description

Requirement see Wikidata:SPARQL_federation_input

  • Complies with the SPARQL 1.1 protocol, "query operation" part, at least to the extent necessary to make federated SERVICE clause work
  • Contains data that can be linked to Wikidata
  • Has data freely available under license compatible with CC0 (preferred) link www.kb.se/libris

See response Libris XL

Example Federated search from presentation 2014

image.png (768×915 px, 357 KB)

in video at 43min

Discussion in Swedish about how caching can be used for federated search in '''Libris''' see video at 47 minutes

image.png (407×547 px, 82 KB)

See also:

Event Timeline

Salgo60 updated the task description. (Show Details)

Per https://www.kb.se/libris/Oppna-data/ svensk nationalbibliografi and svenska auktoritetsposter are CC0

Salgo60 updated the task description. (Show Details)

Thanks @Lokal_Profil
is there a dedicated place for storing information like this (CC0 etc.) about Federated Services used in WD?

FYI: I also thought to get some experience it would be nice to test Federation with a service that is already up and running see {T200668: Set up Nobel Data as federated search with Wikidata}

Endpoint has been set up see Wikidata_Query_Service ....SPARQL_Federation_endpoints

image.png (185×1 px, 39 KB)

No success see tweet

image.png (556×1 px, 504 KB)

Wild guess

  1. something needs to be set up at LIBRIS
  2. wrong URL

@Smalyshev do you have a skilled guess were the problem is?

Status:

  1. the LIBRIS XL project has recently moved direction Linked data ==> I feel we have no good contact person for things like this
  2. the mentioned end point above I have not seen it used in a federated search from anther system
  3. my skills in SPARQL federation is just test done with Nobel data T200668: Set up Nobel Data as federated search with Wikidata

I think the whitelist was not deployed yet, could you try again now and see if it works?

Aklapper changed the edit policy from "Custom Policy" to "All Users".Sep 17 2018, 5:48 PM
Aklapper changed Risk Rating from N/A to default.

Thanks @Smalyshev now the federated search works Wikidata <-> LIBRIS

  • search August Strindberg name in LIBRIS
#Federated search Wikidata -> LIBRIS
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

PREFIX libris: <http://libris.kb.se/resource> 
SELECT * WHERE {
  SERVICE <http://libris.kb.se/sparql> {
  ?subject a foaf:Person .
  ?subject foaf:name "August Strindberg" .
  ?subject ?predicate ?object .
  }  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sv". }
}

Looks like I lack the skills to combine a Wikidata search with LIBRIS ID P906 and combine this search with what is in LIBRIS

#Federated search Wikidata -> LIBRIS
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX libris: <http://libris.kb.se/resource> 
PREFIX dc: <http://purl.org/dc/elements/1.1/>

SELECT distinct ?person ?personLabel ?LIBRISid ?LIBRISuri ?subject  WHERE {
  ?person wdt:P3217 ?SBLID.
  ?person wdt:P906 ?LIBRISid.
  BIND(URI(CONCAT("http://libris.kb.se/data/auth/",?LIBRISid)) AS ?LIBRISuri) 
#                  <http://libris.kb.se/data/auth/211283>
#                  <http://libris.kb.se/data/auth/94541>
# BIND(URI(CONCAT("http://libris.kb.se/resource/auth/",?LIBRISid)) AS ?LIBRISuri) 
#                  http://libris.kb.se/resource/auth/220040                  
# BIND(URI(CONCAT("auth/",?LIBRISid)) AS ?LIBRISuri) 
  SERVICE <http://libris.kb.se/sparql> {
   OPTIONAL {?subject rdfs:isDefinedBy ?LIBRISuri}
#   OPTIONAL {?subject <http://www.w3.org/1999/02/22-rdf-syntax-ns#isDefinedBy> ?LIBRISuri}

#   OPTIONAL {?subject rdfs:isDefinedBy ?LIBRISuri}
#   OPTIONAL {?subject owl:sameas ?LIBRISuri}
#   OPTIONAL {?subject rdfs:isDefinedBy ?LIBRISuri}
#  ?subject foaf:name "August Strindberg" .
#  ?subject ?predicate ?object .
  }  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sv". }
} limit 10

FYI @Alicia_Fagerving_WMSE
cc: @Lokal_Profil , @Larske

Ping LIBRIS om det nu 6 månader senare finns en plan

image.png (644×790 px, 110 KB)

Salgo60 changed the task status from Open to Stalled.May 9 2019, 8:14 PM

LIBRIS XL activities are postponed