All Downloads are FREE. Search and download functionalities are using the official Maven repository.

query.indexpattern.rq Maven / Gradle / Ivy

#
# Federated Query pattern for LOD graph index
# Perform source selection
# Pattern completed by FederatedVisitor SelectorIndex
# Return endpoint URI -> predicate: true|false
#
prefix kgi:     
prefix void:    
prefix dcterms: 

select *
where {
service  {
# values ?serv {uri}
%s
graph ?g {
    ?metadata dcterms:modified ?modif .
    # variable ?s MUST be ?s (see SelectorIndex)
    ?metadata kgi:curated ?s .
    ?s void:sparqlEndpoint ?serv
   # bind (exists {?s void:propertyPartition/void:property $predicate} as ?b)) 
   %s
}   
# get latest metadata
filter not exists {
    ?m kgi:curated/void:sparqlEndpoint ?serv
    ?m dcterms:modified ?modif0 
    filter (?modif0 < ?modif) 
}

}}
order by ?serv




© 2015 - 2025 Weber Informatics LLC | Privacy Policy