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

sttl.owl.init.rq Maven / Gradle / Ivy

Go to download

Corese is a Semantic Web Factory (triple store and SPARQL endpoint) implementing RDF, RDFS, SPARQL 1.1 Query and Update.

There is a newer version: 4.6.1
Show newest version
#
# defaut processing of a variable is 
# st:turtle on URI 
# st:apply-templates on Blank and Literal
# Literals are displayed by st:xsdLiteral  (literalvalue.rq)
# otherwise must use st:turtle explicitely (e.g. cardinality.rq)
#
# Olivier Corby, Wimmics Inria I3S, 2014
#
template st:profile(?in) {
  
}
where {}

function st:process(?in) {  
      if (isURI(?in), st:protect(?in),	
	st:apply-templates(?in))
    } 
  
function st:protect(?in) {
    let (?t = st:turtle(?in)){
      if (coalesce(st:get(st:html), false) && 
	    strstarts(?t, "<")){ 
	 replace(?t, "<", "<")
      }
      else {
	 ?t
      }
    }
  }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy