Hi,
I tried to add a MusicBrainz Referenced Site (the one maintained by
DBTune) using the following configuration:
id = musicbrainz
name = musicbrainz
entity prefixes =
http://dbtune.org/musicbrainz/resource/
http://dbtune.org/musicbrainz/resource/artist/
http://dbtune.org/musicbrainz/resource/record/
http://dbtune.org/musicbrainz/resource/track/
http://dbtune.org/musicbrainz/resource/master/
access URI = http://dbtune.org/musicbrainz/data/
dereferencing = coolURI
query service = http://dbtune.org/musicbrainz/sparql
query strategy = SPARQL
caching strategy = used
cache name = mbcache
I then went on to query the site for the artist Metallica, first in json
curl -H "Accept: application/json"
"http://localhost:8080/entityhub/site/musicbrainz/entity?id=http://dbtune.org/musicbrainz/resource/artist/65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab"
then in rdf+xml
curl -H "Accept: application/rdf+xml"
"http://localhost:8080/entityhub/site/musicbrainz/entity?id=http://dbtune.org/musicbrainz/resource/artist/65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab"
I noticed that the rdf/xml graph as many, many more triples. More
precisely, it includes inverse predicates, namely triples like
?x foaf:maker
http://dbtune.org/musicbrainz/resource/artist/65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab
I haven't checked if there is anything else missing yet.
Is this some limitation of the json-ld renderer or something?
Also, with this cache strategy am I not supposed to get the same data
when querying the entity hub tout-court? If I issue:
curl -H "Accept: application/json"
"http://localhost:8080/entityhub/entity?id=http://dbtune.org/musicbrainz/resource/artist/65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab"
I keep getting a 404
Thanks for your help
Alessandro
--
M.Sc. Alessandro Adamou
Alma Mater Studiorum - Università di Bologna
Department of Computer Science
Mura Anteo Zamboni 7, 40127 Bologna - Italy
Semantic Technology Laboratory (STLab)
Institute for Cognitive Science and Technology (ISTC)
National Research Council (CNR)
Via Nomentana 56, 00161 Rome - Italy
"As for the charges against me, I am unconcerned. I am beyond their timid, lying
morality, and so I am beyond caring."
(Col. Walter E. Kurtz)
Not sent from my iSnobTechDevice