prefixes = "PREFIX rdfs: \ PREFIX rdf: \ PREFIX crm: \ PREFIX owl: \ PREFIX schema: \ PREFIX foaf: \ PREFIX person: \ PREFIX time: " SELECT ?subject ?property ?object ?label WHERE{ ?subject rdfs:label ?label . ?label bif:contains "Fondo". FILTER (CONTAINS(?label, "6000256")) ?subject ?property ?object . } LIMIT 10000 queryIdentificatore = prefixes + " SELECT DISTINCT ?g ?subject ?label ?identifier \ WHERE {GRAPH ?g {?subject rdf:type crm:E22_Man-Made_Object } \ ?subject rdfs:label ?label . \ ?subject crm:P1_is_identified_by ?uri_identifier . \ ?uri_identifier rdfs:label ?identifier ; \ crm:P2_has_type 'Segnatura' . \ FILTER (CONTAINS(?identifier, " + word + ")) \ }"