2020-01-29 16:43:25 +01:00
|
|
|
#server.contextPath=/ariadneplus-graphdb
|
|
|
|
#update due to springboot 2.1.3
|
|
|
|
server.servlet.context-path=/ariadneplus-graphdb
|
2019-12-12 12:58:30 +01:00
|
|
|
server.port=8281
|
|
|
|
|
|
|
|
graphdb.serverUrl=http://localhost:7200/
|
2019-12-13 14:53:15 +01:00
|
|
|
graphdb.writer.user=writer
|
|
|
|
graphdb.writer.pwd=writer01
|
2019-12-16 14:46:42 +01:00
|
|
|
graphdb.repository=ariadneprova
|
2019-12-12 12:58:30 +01:00
|
|
|
graphdb.sparqlUrl = http://localhost:7200/sparql
|
2019-12-13 14:53:15 +01:00
|
|
|
|
2020-01-28 16:53:59 +01:00
|
|
|
graphdb.baseURI=https://ariadne-infrastructure.eu/
|
|
|
|
|
|
|
|
#repository.url=http://localhost:7200
|
|
|
|
repository.url=http://graphdb-test.ariadne.d4science.org:7200
|
|
|
|
|
|
|
|
sparql.query2=PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/> PREFIX mine: <http://www.myprefix/> CONSTRUCT { ?archeologicalResourceType a mine:archeologicalResourceType . ?record mine:archeologicalResourceType ?archeologicalResourceType . ?archeologicalResourceType mine:name ?archeologicalResourceTypeName . } WHERE { GRAPH <api_________::ariadne_plus::ads::sample_partition_1> { ?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName . } }
|
|
|
|
|
|
|
|
sparql.query=PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/> \
|
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \
|
|
|
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> \
|
|
|
|
PREFIX mine: <http://www.myprefix/> \
|
|
|
|
CONSTRUCT { \
|
|
|
|
?record mine:resourcetype "AriadneCatalogEntry" . \
|
|
|
|
?record mine:identifier ?record .\
|
|
|
|
?record mine:publisher ?x . \
|
|
|
|
?x a mine:AgentInfo . \
|
|
|
|
?x mine:name ?publisherName . \
|
|
|
|
?x mine:type ?publisherType . \
|
|
|
|
?archeologicalResourceType a mine:archeologicalResourceType . \
|
|
|
|
?record mine:archeologicalResourceType ?archeologicalResourceType . \
|
|
|
|
?archeologicalResourceType mine:name ?archeologicalResourceTypeName . \
|
|
|
|
?record mine:issued ?issued . \
|
|
|
|
?record mine:resourceType ?resourceType . \
|
|
|
|
?record mine:modified ?modified . \
|
|
|
|
?record mine:nativeSubject ?ns . \
|
|
|
|
?ns a mine:NativeSubject . \
|
|
|
|
?ns mine:prefLabel ?nativeSbj . \
|
|
|
|
?spatial a mine:Spatial . \
|
|
|
|
?record mine:spatial ?spatial . \
|
|
|
|
?spatial mine:placeName ?spatialPlaceName . \
|
|
|
|
?spatial mine:location ?blocation . \
|
|
|
|
?blocation a mine:AriadneGeoPoint . \
|
|
|
|
?blocation mine:lat ?spatialLocationLat . \
|
|
|
|
?blocation mine:lon ?spatialLocationLon . \
|
|
|
|
?record mine:accessPolicy ?accessPolicy . \
|
|
|
|
?record mine:landingPage ?landingPage . \
|
|
|
|
?record mine:title ?title . \
|
|
|
|
?record mine:accessRights ?accessRights . \
|
|
|
|
?record mine:description ?description . \
|
|
|
|
?record mine:contributor ?contributor . \
|
|
|
|
?contributor a mine:AgentInfo . \
|
|
|
|
?contributor mine:name ?contributorName . \
|
|
|
|
?contributor mine:type ?contributorType . \
|
|
|
|
?record mine:originalId ?originalId . \
|
|
|
|
?record mine:temporal ?t .\
|
|
|
|
?t a mine:AriadneTemporal . \
|
|
|
|
?t mine:periodName ?temporalPeriodName . \
|
|
|
|
?record mine:language ?language . \
|
|
|
|
} \
|
|
|
|
WHERE { \
|
|
|
|
GRAPH <api_________::ariadne_plus::ads::sample_partition_1> { \
|
|
|
|
?archeologicalResourceType skos:prefLabel ?archeologicalResourceTypeName . \
|
|
|
|
?x rdfs:label ?publisherName . \
|
|
|
|
?record aocat:has_native_subject ?ns . \
|
|
|
|
?ns skos:prefLabel ?nativeSbj . \
|
|
|
|
?type skos:prefLabel ?resourceType . \
|
|
|
|
?record aocat:has_spatial_coverage ?spatial . \
|
|
|
|
?spatial aocat:has_place_name ?spatialPlaceName . \
|
|
|
|
?spatial aocat:has_latitude ?spatialLocationLat . \
|
|
|
|
?spatial aocat:has_longitude ?spatialLocationLon . \
|
|
|
|
?record aocat:has_access_policy ?accessPolicy . \
|
|
|
|
?record aocat:has_landing_page ?z . \
|
|
|
|
?z rdfs:label ?landingPage . \
|
|
|
|
?record aocat:has_title ?title . \
|
|
|
|
?record aocat:has_access_policy ?accessRights . \
|
|
|
|
?record aocat:has_description ?description . \
|
|
|
|
?record aocat:has_creator ?contributor . \
|
|
|
|
?contributor rdfs:label ?contributorName . \
|
|
|
|
?record aocat:has_original_id ?originalId . \
|
|
|
|
?record aocat:has_temporal_coverage ?t . \
|
|
|
|
?t aocat:has_period ?p . \
|
|
|
|
?p skos:prefLabel ?temporalPeriodName . \
|
|
|
|
?l skos:prefLabel ?language . \
|
|
|
|
BIND("organization" as ?contributorType) . \
|
|
|
|
BIND("organization" as ?publisherType) . \
|
|
|
|
BIND(uri(concat('http://www.myprefix/location/', md5(concat(str(?spatialLocationLat), str(?spatialLocationLon))))) as ?blocation) \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sparql.query3=PREFIX aocat: <https://www.ariadne-infrastructure.eu/resource/ao/cat/1.1/>\
|
|
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\
|
|
|
|
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\
|
|
|
|
PREFIX mine: <http://www.myprefix/>\
|
|
|
|
PREFIX onto: <http://www.ontotext.com/>\
|
|
|
|
CONSTRUCT {\
|
|
|
|
?record mine:resourcetype "AriadneCatalogEntry" .\
|
|
|
|
?record mine:identifier ?record .\
|
|
|
|
?record mine:publisher ?x .\
|
|
|
|
?x mine:type ?publisherType .\
|
|
|
|
?record mine:issued ?issued .\
|
|
|
|
?record mine:modified ?modified .\
|
|
|
|
?record mine:accessPolicy ?accessPolicy .\
|
|
|
|
?record mine:landingPage ?landingPage .\
|
|
|
|
?record mine:title ?title .\
|
|
|
|
?record mine:accessRights ?accessRights .\
|
|
|
|
?record mine:description ?description .\
|
|
|
|
?record mine:contributor ?contributor .\
|
|
|
|
?record mine:originalId ?originalId .\
|
|
|
|
}\
|
|
|
|
WHERE {\
|
|
|
|
?record aocat:has_access_policy ?accessPolicy .\
|
|
|
|
?record aocat:has_landing_page ?z .\
|
|
|
|
?z rdfs:label ?landingPage .\
|
|
|
|
?record aocat:has_title ?title .\
|
|
|
|
?record aocat:has_access_policy ?accessRights .\
|
|
|
|
?record aocat:has_description ?description .\
|
|
|
|
?record aocat:has_original_id ?originalId .\
|
|
|
|
BIND("organization" as ?contributorType) .\
|
|
|
|
BIND("organization" as ?publisherType) .\
|
|
|
|
}\
|
|
|
|
limit 20
|
|
|
|
|
|
|
|
catalog.entry.path=$[*][?(@['http://www.myprefix/resourcetype'][0]['value']=='AriadneCatalogEntry')]
|
|
|
|
general.classpath=ariadneplus.elasticsearch.model.
|
|
|
|
type.path=http://www.myprefix/resourcetype
|
|
|
|
exclude.predicates=["http://www.myprefix/resourcetype", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]
|
|
|
|
class.map.specifications={\
|
|
|
|
"AriadneTemporal": {\
|
|
|
|
"class_type": "prototype",\
|
|
|
|
"mappings": {\
|
|
|
|
"http://www.myprefix/from": {\
|
|
|
|
"class_field": "From",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/periodName": {\
|
|
|
|
"class_field": "PeriodName",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/until": {\
|
|
|
|
"class_field": "Until",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/uri": {\
|
|
|
|
"class_field": "Uri",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
}\
|
|
|
|
}\
|
|
|
|
},\
|
|
|
|
"AriadneGeoPoint": {\
|
|
|
|
"class_type": "unique",\
|
|
|
|
"mappings": {\
|
|
|
|
"http://www.myprefix/lat": {\
|
|
|
|
"class_field": "Lat",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/lon": {\
|
|
|
|
"class_field": "Lon",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
}\
|
|
|
|
}\
|
|
|
|
},\
|
|
|
|
"Spatial": {\
|
|
|
|
"class_type": "prototype",\
|
|
|
|
"mappings":{"http://www.myprefix/address": {\
|
|
|
|
"class_field": "Address",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/coordinateSystem": {\
|
|
|
|
"class_field": "CoordinateSystem",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/country": {\
|
|
|
|
"class_field": "Country",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/location": {\
|
|
|
|
"class_field": "Location",\
|
|
|
|
"external_reference": "AriadneGeoPoint",\
|
|
|
|
"substring": "no"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/placeName": {\
|
|
|
|
"class_field": "PlaceName",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
}}\
|
|
|
|
},\
|
|
|
|
"ArcheologicalResourceType": {\
|
|
|
|
"class_type": "unique",\
|
|
|
|
"mappings": {\
|
|
|
|
"http://www.myprefix/id": {\
|
|
|
|
"class_field": "Id",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/name": {\
|
|
|
|
"class_field": "Name",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
}\
|
|
|
|
}\
|
|
|
|
},\
|
|
|
|
"AgentInfo": {\
|
|
|
|
"class_type": "prototype",\
|
|
|
|
"mappings": {\
|
|
|
|
"http://www.myprefix/name": {\
|
|
|
|
"class_field": "Name",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/type": {\
|
|
|
|
"class_field": "Type",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/email": {\
|
|
|
|
"class_field": "Email",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/phone": {\
|
|
|
|
"class_field": "Phone",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
}\
|
|
|
|
}\
|
|
|
|
},\
|
|
|
|
"NativeSubject": {\
|
|
|
|
"class_type": "prototype",\
|
|
|
|
"mappings": {\
|
|
|
|
"http://www.myprefix/prefLabel": {\
|
|
|
|
"class_field": "PrefLabel",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/rdfAbout": {\
|
|
|
|
"class_field": "RdfAbout",\
|
|
|
|
"substring": "yes",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
}\
|
|
|
|
}\
|
|
|
|
},\
|
|
|
|
"AriadneCatalogEntry": {\
|
|
|
|
"class_type": "unique",\
|
|
|
|
"mappings": {\
|
|
|
|
"http://www.myprefix/accessPolicy": {\
|
|
|
|
"class_field": "AccessPolicy",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/identifier": {\
|
|
|
|
"class_field": "Identifier",\
|
|
|
|
"substring": "yes",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/publisher": {\
|
|
|
|
"class_field": "Publisher",\
|
|
|
|
"external_reference": "AgentInfo",\
|
|
|
|
"substring": "no"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/archeologicalResourceType": {\
|
|
|
|
"class_field": "ArcheologicalResourceType",\
|
|
|
|
"external_reference": "ArcheologicalResourceType",\
|
|
|
|
"substring": "no"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/issued": {\
|
|
|
|
"class_field": "Issued",\
|
|
|
|
"element_type": "java.lang.String",\
|
|
|
|
"substring": "no"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/resourceType": {\
|
|
|
|
"class_field": "ResourceType",\
|
|
|
|
"element_type": "java.lang.String",\
|
|
|
|
"substring": "no"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/modified": {\
|
|
|
|
"class_field": "Modified",\
|
|
|
|
"element_type": "java.lang.String",\
|
|
|
|
"substring": "no"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/nativeSubject": {\
|
|
|
|
"class_field": "NativeSubject",\
|
|
|
|
"substring": "no",\
|
|
|
|
"external_reference": "NativeSubject"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/spatial": {\
|
|
|
|
"class_field": "Spatial",\
|
|
|
|
"substring": "no",\
|
|
|
|
"external_reference": "Spatial"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/landingPage": {\
|
|
|
|
"class_field": "LandingPage",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/title": {\
|
|
|
|
"class_field": "Title",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/accessRights": {\
|
|
|
|
"class_field": "AccessRights",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/description": {\
|
|
|
|
"class_field": "Description",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/contributor": {\
|
|
|
|
"class_field": "Contributor",\
|
|
|
|
"substring": "no",\
|
|
|
|
"external_reference": "AgentInfo"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/originalId": {\
|
|
|
|
"class_field": "OriginalId",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/temporal": {\
|
|
|
|
"class_field": "Temporal",\
|
|
|
|
"substring": "no",\
|
|
|
|
"external_reference": "AriadneTemporal"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/language": {\
|
|
|
|
"class_field": "Language",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
},\
|
|
|
|
"http://www.myprefix/partOf": {\
|
|
|
|
"class_field": "PartOf",\
|
|
|
|
"substring": "no",\
|
|
|
|
"element_type": "java.lang.String"\
|
|
|
|
}\
|
|
|
|
}\
|
|
|
|
}\
|
|
|
|
}
|