DOREMUS-ANR / knowledge-base

Repository containing controlled vocabularies and data published by DOREMUS
http://data.doremus.org/
Apache License 2.0
16 stars 7 forks source link

Publier les référentiels en json-ld pour faciliter la consommation par vizskos #10

Closed marie-ototoi closed 7 years ago

marie-ototoi commented 8 years ago

Vizskos prend du json-ld en entrée, il peut le récupérer dans le sparql endpoint quand les référentiels seront publiés, ou bien charger un fichier de fallback

rtroncy commented 8 years ago

Les données des référentiels sont déjà chargées dans le SPARQL endpoint. Exemple (trouver tous les concepts dans le référentiel des genres) résultats:

select ?s ?prefLabel ?altLabel 
where { 
 ?s a skos:Concept .
 ?s skos:inScheme <http://data.doremus.org/vocabulary/genre>.
 ?s skos:prefLabel ?prefLabel .
 ?s skos:altLabel ?altLabel .
}
group by ?s
LIMIT 50

On pourrait matérialiser les référentiels complets en JSON-LD pour t'aider.

pasqLisena commented 8 years ago

Hello @marie-ototoi, I materialized the vocabularies.

Example: http://data.doremus.org/vocabulary/key

Setting the Accept HTTP Header you can select the format.

Example:

HTTP GET http://data.doremus.org/vocabulary/key
Accept: application/ld+json

Is it enough? If yes, close the issue please :)

rtroncy commented 7 years ago

@pasqLisena Does your deployment script re-materialize the vocabularies in json-ld after each deployment (or when the vocabularies are changed)?

pasqLisena commented 7 years ago

Yes, it is just a setting of Virtuoso