All pastes #762066 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-11-05 09:58 UTC
rendered paste body
PREFIX doap: <http://usefulinc.com/ns/doap#>

SELECT DISTINCT ?graph ?project ?name ?shortdesc 
WHERE {
  GRAPH ?graph {
    ?project doap:shortdesc ?shortdesc ;
      doap:name ?name .
    OPTIONAL { ?project doap:description ?desc }  
  }

. FILTER (REGEX(str(?name), "sesame", "i") || REGEX(str(?shortdesc), "sesame", "i") || REGEX(str(?desc), "sesame", "i"))
}



/////////////////////////


PREFIX doap: <http://usefulinc.com/ns/doap#>

SELECT DISTINCT ?graph ?project ?name ?shortdesc 
WHERE {
  GRAPH ?graph {
    ?project doap:shortdesc ?shortdesc ;
      doap:name ?name .
    OPTIONAL { ?project doap:description ?desc }  
  }

. FILTER (REGEX(str(?name), "Sesame", "i") || REGEX(str(?shortdesc), "Sesame", "i") || REGEX(str(?desc), "Sesame", "i"))
}