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

sttl.web.form.rq Maven / Gradle / Ivy

#
# Generate a form with a SPARQL query ?q to submit
# Argument  ?n is the name of query (st:minus)
# ?q actual query, ?t query template, ?s query solution
#
prefix ft: 
template st:form(?n, ?q, ?t, ?s, ?qt) {
   
   format {   
    ft:form.html
   
    st:get(st:service) 
    st:get(st:profile)
    str(?t) 
    str(?s) 
    ?n 
    if (?s = st:null, "", st:format(ft:nav.html))
    st:call-template(st:selecttable, ?n, ?q, ?t, ?s, ?qt)
    st:call-template(st:selectsilent,?n, ?q, ?t, ?s, ?qt)
    str(?q)
    }
   
}
where {
    bind (st:get(st:context) as ?g)
    graph ?g {  
        ?qt st:name ?n 
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy