rdf - SPARQL Tracker Could not run update, Property not found in the ontology -


 tracker-sparql -qu "insert silent <urn:uuid:38f> {  <urn:uuid:38f> nfo:filedataobject , nie:informationelement ;nie:isstoredas <urn:uuid:38f> ; nie:url 'file.mp3' ; nie:datasource <urn:nepomuk:datasource:840494f4edg> ;nie:deviceid '840494f4edg';nmm:audiotype 128 ; tracker:available true; nmm:musicpiece , nfo:audio; nie:title 'abandoner' .}"    tracker-sparql -qu "insert {<urn:artist:38caadd1f13bf78a26aca0e7d42a8f58> nmm:artist ;nmm:artistname 'aesop'; ?f nmm:performer <urn:artist:38caadd1f13bf78a26aca0e7d42a8f58>;  nmm:extensemble <urn:artist:38caadd1f13bf78a26aca0e7d42a8f58>  } { ?f nie:url 'file.mp3'}" 

first insert returns done. second insert returns not run update, property 'urn:uuid:38f' not found in ontology.

i cannot understand how link new artist existing music piece.

you second sparql insert statement malformed:

insert {     <urn:artist:38caadd1f13bf78a26aca0e7d42a8f58>          nmm:artist ;         nmm:artistname 'aesop';          ?f nmm:performer <urn:artist:38caadd1f13bf78a26aca0e7d42a8f58>;           nmm:extensemble <urn:artist:38caadd1f13bf78a26aca0e7d42a8f58>   } { ?f nie:url 'file.mp3'} 

there ; . should close triple , start new triple, means ?f has position of predicate in triple. <urn:uuid:38f> defined nfo:filedataobject, nie:informationelement, nmm:musicpiece , nfo:audio, not rdfs:property or owl property, tracker signals there no property identified uri <urn:uuid38f>.

the correct statement be

insert {     <urn:artist:38caadd1f13bf78a26aca0e7d42a8f58>          nmm:artist ;         nmm:artistname 'aesop' .       ?f nmm:performer <urn:artist:38caadd1f13bf78a26aca0e7d42a8f58>;           nmm:extensemble <urn:artist:38caadd1f13bf78a26aca0e7d42a8f58>   } { ?f nie:url 'file.mp3'} 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -