queryMMO.js 948 B

1234567891011121314151617181920212223242526
  1. prefixes = "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \
  2. PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \
  3. PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/> \
  4. PREFIX owl: <http://www.w3.org/2002/07/owl#> \
  5. PREFIX schema: <http://schema.org/> \
  6. PREFIX foaf: <http://xmlns.com/foaf/0.1/> \
  7. PREFIX person: <http://www.w3.org/ns/person#> \
  8. PREFIX time: <https://www.w3.org/TR/owl-time#> "
  9. SELECT ?subject ?property ?object ?label
  10. WHERE{
  11. ?subject rdfs:label ?label .
  12. ?label bif:contains "Fondo".
  13. FILTER (CONTAINS(?label, "6000256"))
  14. ?subject ?property ?object .
  15. }
  16. LIMIT 10000
  17. queryIdentificatore = prefixes + " SELECT DISTINCT ?g ?subject ?label ?identifier \
  18. WHERE {GRAPH ?g {?subject rdf:type crm:E22_Man-Made_Object } \
  19. ?subject rdfs:label ?label . \
  20. ?subject crm:P1_is_identified_by ?uri_identifier . \
  21. ?uri_identifier rdfs:label ?identifier ; \
  22. crm:P2_has_type 'Segnatura' . \
  23. FILTER (CONTAINS(?identifier, " + word + ")) \
  24. }"