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

sttl.json.propertyvalue.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
template st:propertyvalue(?x, ?p) {

     '"' 
     if (?p = rdf:type,
     '@type',
     st:turtle(?p, true))
     
     '": '   
     
    if (?mult, "[", "") 
    
    group { 
    
     if (?p = rdf:type, 
       st:turtle(str(?y)),
       st:apply-templates-with(st:jsonterm, ?y))  
      
      ; separator = ", "
      
    } 
    
    if (?mult, "]", "") 
          
}
where {

  {select ?x ?p (count(*) as ?c) where { ?x ?p ?y }}
  
  bind (?c > 1 as ?mult)
  
  ?x ?p ?y  
}
order by ?y




© 2015 - 2025 Weber Informatics LLC | Privacy Policy