Hi,

I'm trying to create a new URI which I will use in a CONSTRUCT query in
the end based on some data found on DBpedia:

--

select ?uri ?name ?mcode ?homepage ?mcodeuri

where {

?uri <http://dbpedia.org/ontology/municipalityCode> ?mcode .
BIND (URI(CONCAT("http://data.example.com/";, ?mcode)) AS ?mcodeuri)
?uri <http://dbpedia.org/ontology/country>
<http://dbpedia.org/resource/Switzerland> .
?uri <http://xmlns.com/foaf/0.1/homepage> ?homepage .
?uri <http://www.w3.org/2000/01/rdf-schema#label> ?name .
} LIMIT 100

--

But I get some error complaining about BIND, is it possible that this is
not supported on the DBpedia/Virtuoso endpoint? Without the BIND line
the query works great.

Took this as an example:

http://answers.semanticweb.com/questions/12728/create-uri-in-a-sparql-construct-query

thanks

Adrian

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to