views.binary.vsl Maven / Gradle / Ivy
#* @vtlvariable name="topic" type="org.apache.jena.graph.Node" *#
#* @vtlvariable name="rdf" type="org.apache.jena.sparql.core.DatasetGraph" *#
#* @vtlvariable name="model" type="org.apache.jena.rdf.model.Model" *#
#set( $title = $helpers.getObjectTitle($rdf, $topic) )
#set( $contentNode = $helpers.getContentNode($topic) )
#parse("views/common.vsl")
$title
#parse("views/common-head.vsl")
#parse("views/common-node-header.vsl")
#parse("views/common-breadcrumb.vsl")
## output actions
#parse("views/common-node-actions.vsl")
#parse("views/common-metadata.vsl")
## output triples for the topic node
Properties
#triples($contentNode)
## output other nodes
Other Resources
#foreach($subject in $model.listSubjects())
#if( $subject != $topic )
#set( $subUri = #$helpers.getResourceId($subject) )
#if( $subject.getURI() && $subject.getURI().startsWith("http") )
$esc.html($helpers.getObjectTitle($rdf, $subject.asNode()))
#else
$esc.html($helpers.getObjectTitle($rdf, $subject.asNode()))
#end
#triples($subject.asNode())
#end
#end
#parse("views/common-footer.vsl")
© 2015 - 2025 Weber Informatics LLC | Privacy Policy