/* just an example of configuration useful to redirect all the request on the same endpoint */ $.jStorage.set('profile', { // parametri di connessione agli endpoint 'connection' : { /*matching all the requested URIs*/ 'http://' : { description : { en : 'just a test' }, useForInverseSameAs : true, /*change this*/ endpoint : 'http://localhost:8890/sparql', examples : [{ label : 'test 1', uri : 'http://mysite.com/aaa' }, { label : 'test 2', uri : 'http://your.com/bbbb' }] } }, arrows : { 'http://www.w3.org/2002/07/owl#sameAs' : 'isSameAs', 'http://purl.org/dc/terms/isPartOf' : 'isPartOf', 'http://purl.org/dc/elements/1.1/type' : 'isType', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' : 'isType' }, uriSubstitutor : [{ findStr : 'mpii.de/yago/resource/', replaceStr : 'yago-knowledge.org/resource/' }], // configurazione standard per la rappresentazione di un documento // utilizzata nel caso manchi una specifica configurazione per la classe 'default' : { sparql : { allClasses : 'SELECT DISTINCT ?object WHERE {[] a ?object}', findSubject : 'SELECT DISTINCT ?subject WHERE { {?subject a <{CLASS}>; ?object. FILTER(regex(str(?object),\'{VALUE}\',\'i\'))} UNION {?subject a <{CLASS}>; ?object. FILTER(regex(str(?object),\'{VALUE}\',\'i\'))} UNION {?subject a <{CLASS}>; ?object. FILTER(regex(str(?object),\'{VALUE}\',\'i\'))} } LIMIT 1 ', documentUri : 'SELECT DISTINCT * WHERE {<{URI}> ?property ?object} ORDER BY ?property', document : 'SELECT DISTINCT * WHERE {<{URI}> ?property ?object}', bnode : 'SELECT DISTINCT * WHERE {<{URI}> ?property ?object}', inverse : 'SELECT DISTINCT * WHERE {?object ?property <{URI}>.} LIMIT 100', inverseSameAs : 'SELECT DISTINCT * WHERE {{?object <{URI}> } UNION { ?object <{URI}>}}' }, endpoint : 'http://labs.regesta.com/resourceProxy/', document : { className : 'standard', titleProperties : ['http://dati.senato.it/osr/titolo', 'http://www.w3.org/2004/02/skos/core#notation', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value', 'http://www.geonames.org/ontology#name', 'http://purl.org/dc/elements/1.1/title', 'http://purl.org/dc/terms/title', 'http://www.w3.org/2000/01/rdf-schema#label', 'http://www.w3.org/2004/02/skos/core#prefLabel', 'http://logd.tw.rpi.edu/source/visualizing-org/dataset/2010-global-agenda-council-interlinkage-survey/vocab/enhancement/1/how_councils_interlink', 'http://rdf.freebase.com/ns/type.object.name', 'http://spcdata.digitpa.gov.it/nome_cognome', 'http://xmlns.com/foaf/0.1/firstName', 'http://xmlns.com/foaf/0.1/lastName', 'http://xmlns.com/foaf/0.1/surname', 'http://xmlns.com/foaf/0.1/name', 'http://purl.org/dc/terms/description', 'http://www.geonames.org/ontology/officialName'] }, // http://www.w3.org/2000/01/rdf-schema#label images : { properties : ['http://www.w3.org/2006/vcard/ns#photo', 'http://xmlns.com/foaf/0.1/depiction', 'http://dbpedia.org/ontology/thumbnail', 'http://dbpedia.org/property/logo', 'http://linkedgeodata.org/ontology/schemaIcon'] }, maps : { longs : ['http://www.w3.org/2003/01/geo/wgs84_pos#long'], lats : ['http://www.w3.org/2003/01/geo/wgs84_pos#lat'], points : ['http://www.georss.org/georss/point'] }, weblinks : { properties : ['http://www.w3.org/ns/dcat#accessURL', 'http://xmlns.com/foaf/0.1/mbox', 'http://rdfs.org/sioc/ns#links_to', 'http://it.dbpedia.org/property/url', 'http://data.nytimes.com/elements/search_api_query', 'http://www.w3.org/2000/01/rdf-schema#isDefinedBy', 'http://xmlns.com/foaf/0.1/page', 'http://xmlns.com/foaf/0.1/homepage', 'http://purl.org/dc/terms/isReferencedBy', 'http://purl.org/dc/elements/1.1/relation', 'http://dbpedia.org/ontology/wikiPageExternalLink', 'http://data.nytimes.com/elements/topicPage'] } }, 'http://www.w3.org/2002/07/owl#Class' : { document : { className : 'Class'/*, titleProperties : ['http://purl.org/dc/elements/1.1/title', 'http://www.w3.org/2000/01/rdf-schema#label']*/ } }, 'http://www.w3.org/2002/07/owl#ObjectProperty' : { document : { className : 'ObjectProperty' } }, 'http://www.w3.org/2002/07/owl#Restriction' : { document : { className : 'DatatypeProperty' } }, 'http://www.w3.org/2002/07/owl#DatatypeProperty' : { document : { className : 'DatatypeProperty' } }, 'http://www.w3.org/2002/07/owl#Property' : { document : { className : 'Property' } }, 'http://www.w3.org/ns/locn#Address' : { document : { titleProperties : ['http://www.w3.org/ns/locn#fullAddress'] } } }); if (!document.lodliveVars) { document.lodliveVars = {}; } $.jStorage.set('boxTemplate', '
'); $.jStorage.set('relationsLimit', 25); $.jStorage.set('doStats', $.jStorage.get('doStats', true)); $.jStorage.set('doInverse', $.jStorage.get('doAutoExpand', true)); $.jStorage.set('doAutoExpand', $.jStorage.get('doAutoExpand', true)); $.jStorage.set('doAutoSameas', $.jStorage.get('doAutoSameas', true)); $.jStorage.set('doCollectImages', $.jStorage.get('doCollectImages', true)); $.jStorage.set('doDrawMap', $.jStorage.get('doDrawMap', true)); $.jStorage.set('showInfoConsole', $.jStorage.get('showInfoConsole', true)); $.jStorage.set('endpoints', { all : 'output=json&format=application/json&timeout=0', arcSparql : 'output=json&jsonp=lodlive', sesame : 'Accept=application/sparql-results%2Bjson' });