Given a database table like
id name uri 1 bob http://myontology/job/baker 2 steve http://myontology/job/pilot 3 bill http://myontology/job/cab_driver
where the uri indicates the class of individual,what is the correct SMS2 syntax to assert that individual is of class uri?
Using the value directly
...
TO {
?subject rdfs:label ?name
?subject a ?uri
}
wraps the uri in quotes (string literal?) producing
http://myontology/person/person1 a "http://myontology/job/baker"
Adding a template
...
TO {
?subject rdfs:label ?name
?subject a ?cls
}
BIND(template("{uri}") AS ?cls)
}
concatenates the default prefix to the uri:
http://myontology/person/person1 a :http://myontology/job/baker
Any ideas?
thanks
EDIT:
I just found a report of similar issue using CSV and the original SMS:
https://community.stardog.com/t/creating-virtual-graph-when-csv-contains-legitimate-uris/1599/10