
webapp.data.query.insert1.rq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of corese-server Show documentation
Show all versions of corese-server Show documentation
Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1
Query and Update.
The newest version!
#
# Try to link geo:Point with DBpedia resource using the rdfs:label
#
prefix o:
prefix sosa:
prefix geo:
prefix ex: .
@event
insert {
?in ex:dbpedia ?uri
}
where {
?in a geo:Point ; rdfs:label ?l
bind (uri(replace(concat("http://dbpedia.org/resource/", ?l), " ", "_")) as ?uri)
service {
?uri rdfs:label ?ll filter langMatches(lang(?ll), "en")
}
}
@before
function us:before(?q) {
xt:print('Connect dbpedia')
}
@service
function us:service(?s, ?e, ?m) {
xt:print('service', ?s, ?m)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy