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

template.browser.rul Maven / Gradle / Ivy







prefix o: 

template st:glocate {

  st:call-template-with(st:navlab, st:gmap, ?in, ?lat, ?lon, xt:list())
  
}
where {
 
    ?in p:longitude ?lon ;
        p:latitude  ?lat 
       
}
limit 1
]]>












prefix o:   

template st:main {

    format {
        ft:frame2.html
        coalesce(?label, us:display(?uri)) 
        coalesce(st:get(st:endpoint), "undefined")
        coalesce(st:format('', ?icon), "")
        st:apply-templates(?uri)
    }
    
    st:call-template(st:glocate, ?uri)
}
where {
    bind (st:focus() as ?uri)
    optional { ?uri o:thumbnail ?icon }
    optional { ?uri rdfs:label ?label }
}
limit 1
]]>







template st:test {
    coalesce(
    st:format (
        ft:triple.html,
        us:display(?p),
        if (isLiteral(?y), ?y, 
            st:format(ft:link.html, st:pplink(?y), us:display(?y)))
    ),
    st:format (
        ft:triple.html,
        us:displayInverse(?q),
        if (isLiteral(?x), ?x, 
            st:format(ft:link.html, st:pplink(?x), us:display(?x)))
    )
    )
}
where {
    ?in a  
    {?in ?p ?y} union {?x ?q ?in}
}
order by ?in 
us:sort(coalesce(?p, ?q), coalesce(?y, ?x)) 
coalesce(?p, ?q) coalesce(?y, ?x)


]]>













template {
    coalesce(
    st:format (
        ft:triple.html,
        us:display(?p),
        if (isLiteral(?y), ?y, 
            st:format(ft:link.html, st:pplink(?y), us:display(?y)))
    ),
    st:format (
        ft:triple.html,
        us:displayInverse(?q),
        if (isLiteral(?x), ?x, 
            st:format(ft:link.html, st:pplink(?x), us:display(?x)))
    )
    )
}
where {
    {?in ?p ?y} union {?x ?q ?in}
}
order by ?in us:sort(coalesce(?p, ?q), coalesce(?y, ?x)) coalesce(?p, ?q) coalesce(?y, ?x)

pragma {st:template st:priority 1000}

]]>








© 2015 - 2025 Weber Informatics LLC | Privacy Policy