diff --git a/dnet-ariadneplus-graphdb-publisher/test/resources/eu/dnetlib/ariadneplus/reader/json/collection.json b/dnet-ariadneplus-graphdb-publisher/test/resources/eu/dnetlib/ariadneplus/reader/json/collection.json index 0448b02..24dd6e6 100644 --- a/dnet-ariadneplus-graphdb-publisher/test/resources/eu/dnetlib/ariadneplus/reader/json/collection.json +++ b/dnet-ariadneplus-graphdb-publisher/test/resources/eu/dnetlib/ariadneplus/reader/json/collection.json @@ -21,6 +21,19 @@ "lang" : "en" } ], + "https://www.ariadne-infrastructure.eu/property/rdfType" : [ + { + "value" : "Collection", + "type" : "literal", + "datatype" : "http://www.w3.org/2001/XMLSchema#string" + } + ], + "https://www.ariadne-infrastructure.eu/property/partOf" : [ + { + "value" : "https://ariadne-infrastructure.eu/aocat/Collection/CENIEH/A4A042CF-4FD6-3FB4-B701-CBC8A1653ADA", + "type" : "uri" + } + ], "https://www.ariadne-infrastructure.eu/property/archeologicalResourceType" : [ { "value" : "https://ariadne-infrastructure.eu/aocat/Concept/AO_Subject/Fieldwork", @@ -100,7 +113,7 @@ ], "https://www.ariadne-infrastructure.eu/property/resourceType" : [ { - "value" : "Dataset Collection", + "value" : "Collection", "type" : "literal", "datatype" : "http://www.w3.org/2001/XMLSchema#string" } diff --git a/dnet-ariadneplus-graphdb-publisher/test/resources/eu/dnetlib/ariadneplus/reader/json/spec.json b/dnet-ariadneplus-graphdb-publisher/test/resources/eu/dnetlib/ariadneplus/reader/json/spec.json index f365663..e0c3e76 100644 --- a/dnet-ariadneplus-graphdb-publisher/test/resources/eu/dnetlib/ariadneplus/reader/json/spec.json +++ b/dnet-ariadneplus-graphdb-publisher/test/resources/eu/dnetlib/ariadneplus/reader/json/spec.json @@ -1,300 +1,458 @@ { -"AriadneTemporal": { -"class_type": "prototype", -"mappings": { -"https://www.ariadne-infrastructure.eu/property/from": { -"class_field": "From", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/periodName": { -"class_field": "PeriodName", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/until": { -"class_field": "Until", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/uri": { -"class_field": "Uri", -"substring": "no", -"element_type": "java.lang.String" -} -} -}, -"AriadneGeoPoint": { -"class_type": "unique", -"mappings": { -"https://www.ariadne-infrastructure.eu/property/lat": { -"class_field": "Lat", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/lon": { -"class_field": "Lon", -"substring": "no", -"element_type": "java.lang.String" -} -} -}, -"Spatial": { -"class_type": "prototype", -"mappings":{"https://www.ariadne-infrastructure.eu/property/address": { -"class_field": "Address", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/coordinateSystem": { -"class_field": "CoordinateSystem", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/country": { -"class_field": "Country", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/location": { -"class_field": "Location", -"external_reference": "AriadneGeoPoint", -"substring": "no" -}, -"https://www.ariadne-infrastructure.eu/property/lat": { -"class_field": "Lat", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/lon": { -"class_field": "Lon", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/placeName": { -"class_field": "PlaceName", -"substring": "no", -"element_type": "java.lang.String" -}} -}, -"ArchaeologicalResourceType": { -"class_type": "unique", -"mappings": { -"https://www.ariadne-infrastructure.eu/property/id": { -"class_field": "Id", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/name": { -"class_field": "Name", -"substring": "no", -"element_type": "java.lang.String" -} -} -}, -"AgentInfo": { -"class_type": "prototype", -"mappings": { -"https://www.ariadne-infrastructure.eu/property/name": { -"class_field": "Name", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/type": { -"class_field": "Type", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/email": { -"class_field": "Email", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/phone": { -"class_field": "Phone", -"substring": "no", -"element_type": "java.lang.String" -} -} -}, -"NativeSubject": { -"class_type": "prototype", -"mappings": { -"https://www.ariadne-infrastructure.eu/property/prefLabel": { -"class_field": "PrefLabel", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/rdfAbout": { -"class_field": "RdfAbout", -"substring": "yes", -"element_type": "java.lang.String" -} -} -}, -"DerivedSubject": { -"class_type": "prototype", -"mappings": { -"https://www.ariadne-infrastructure.eu/property/prefLabel": { -"class_field": "PrefLabel", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/source": { -"class_field": "Source", -"substring": "yes", -"element_type": "java.lang.String" -} -} -}, -"AatSubject": { -"class_type": "prototype", -"mappings": { -"https://www.ariadne-infrastructure.eu/property/id": { -"class_field": "Id", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/label": { -"class_field": "Label", -"substring": "yes", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/lang": { -"class_field": "Lang", -"substring": "yes", -"element_type": "java.lang.String" -} -} -}, -"AriadneCatalogEntry": { -"class_type": "unique", -"mappings": { -"https://www.ariadne-infrastructure.eu/property/accessPolicy": { -"class_field": "AccessPolicy", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/identifier": { -"class_field": "Identifier", -"substring": "yes", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/publisher": { -"class_field": "Publisher", -"external_reference": "AgentInfo", -"substring": "no" -}, -"https://www.ariadne-infrastructure.eu/property/archeologicalResourceType": { -"class_field": "ArchaeologicalResourceType", -"external_reference": "ArchaeologicalResourceType", -"substring": "no" -}, -"https://www.ariadne-infrastructure.eu/property/issued": { -"class_field": "Issued", -"element_type": "java.lang.String", -"substring": "no" -}, -"https://www.ariadne-infrastructure.eu/property/resourceType": { -"class_field": "ResourceType", -"element_type": "java.lang.String", -"substring": "no" -}, -"https://www.ariadne-infrastructure.eu/property/modified": { -"class_field": "Modified", -"element_type": "java.lang.String", -"substring": "no" -}, -"https://www.ariadne-infrastructure.eu/property/nativeSubject": { -"class_field": "NativeSubject", -"substring": "no", -"external_reference": "NativeSubject" -}, -"https://www.ariadne-infrastructure.eu/property/derivedSubject": { -"class_field": "DerivedSubject", -"substring": "no", -"external_reference": "DerivedSubject" -}, -"https://www.ariadne-infrastructure.eu/property/aatSubjects": { -"class_field": "AatSubjects", -"substring": "no", -"external_reference": "AatSubject" -}, -"https://www.ariadne-infrastructure.eu/property/spatialRegion": { -"class_field": "Spatial", -"substring": "no", -"external_reference": "Spatial" -}, -"https://www.ariadne-infrastructure.eu/property/spatialRegionPoint": { -"class_field": "Spatial", -"substring": "no", -"external_reference": "Spatial" -}, -"https://www.ariadne-infrastructure.eu/property/landingPage": { -"class_field": "LandingPage", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/placeName": { -"class_field": "PlaceName", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/title": { -"class_field": "Title", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/accessRights": { -"class_field": "AccessRights", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/description": { -"class_field": "Description", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/creator": { -"class_field": "Creator", -"substring": "no", -"external_reference": "AgentInfo" -}, -"https://www.ariadne-infrastructure.eu/property/contributor": { -"class_field": "Contributor", -"substring": "no", -"external_reference": "AgentInfo" -}, -"https://www.ariadne-infrastructure.eu/property/legalResponsible": { -"class_field": "LegalResponsible", -"substring": "no", -"external_reference": "AgentInfo" -}, -"https://www.ariadne-infrastructure.eu/property/owner": { -"class_field": "Owner", -"substring": "no", -"external_reference": "AgentInfo" -}, -"https://www.ariadne-infrastructure.eu/property/originalId": { -"class_field": "OriginalId", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/uri": { -"class_field": "Temporal", -"substring": "no", -"external_reference": "AriadneTemporal" -}, -"https://www.ariadne-infrastructure.eu/property/language": { -"class_field": "Language", -"substring": "no", -"element_type": "java.lang.String" -}, -"https://www.ariadne-infrastructure.eu/property/partOf": { -"class_field": "UniqueIsPartOf", -"substring": "no", -"element_type": "java.lang.String" -} -} -} + "TextLang": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/text": { + "class_field": "Text", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/lang": { + "class_field": "Language", + "substring": "yes", + "element_type": "java.lang.String" + } + } + }, + "DigitalImage": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/primaryVisualComponent": { + "class_field": "ProviderUri", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/visualComponent": { + "class_field": "AriadneUri", + "substring": "no", + "element_type": "java.lang.String" + } + } + }, + "AriadneResource": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/aboutURILabel": { + "class_field": "Label", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/aboutURI": { + "class_field": "Uri", + "substring": "no", + "element_type": "java.lang.String" + } + } + }, + "AriadneGeoPoint": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/lat": { + "class_field": "Lat", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/lon": { + "class_field": "Lon", + "substring": "no", + "element_type": "java.lang.String" + } + } + }, + "Temporal": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/from": { + "class_field": "From", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/periodOName": { + "class_field": "PeriodName", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/until": { + "class_field": "Until", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/uri": { + "class_field": "Uri", + "substring": "no", + "element_type": "java.lang.String" + } + } + }, + "NativePeriod": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/nativeFrom": { + "class_field": "From", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/nativePeriodName": { + "class_field": "PeriodName", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/nativeUntil": { + "class_field": "Until", + "substring": "no", + "element_type": "java.lang.String" + } + } + }, + "Spatial": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/address": { + "class_field": "Address", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/lat": { + "class_field": "Lat", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/lon": { + "class_field": "Lon", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/placeName": { + "class_field": "PlaceName", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/boxMaxLat": { + "class_field": "BoundingBoxMaxLat", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/boxMinLat": { + "class_field": "BoundingBoxMinLat", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/boxMaxLon": { + "class_field": "BoundingBoxMaxLon", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/boxMinLon": { + "class_field": "BoundingBoxMinLon", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/precisionUnit": { + "class_field": "SpatialPrecision", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/precisionValue": { + "class_field": "CoordinatePrecision", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/geoPoint": { + "class_field": "PolygonGeoPoints", + "substring": "no", + "element_type": "java.lang.String", + "external_reference": "AriadneGeoPoint" + }, + "https://www.ariadne-infrastructure.eu/property/wkt": { + "class_field": "Wkt", + "substring": "no", + "element_type": "java.lang.String" + } + } + }, + "AriadneSubject": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/name": { + "class_field": "PrefLabel", + "substring": "no", + "element_type": "java.lang.String" + } + } + }, + "AgentInfo": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/name": { + "class_field": "Name", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/type": { + "class_field": "Type", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/homepage": { + "class_field": "Homepage", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/institution": { + "class_field": "Institution", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/agentIdentifier": { + "class_field": "AgentIdentifier", + "substring": "no", + "element_type": "java.lang.String" + } + } + }, + "PublisherInfo": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/publisherName": { + "class_field": "Name", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/type": { + "class_field": "Type", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/publisherEmail": { + "class_field": "Email", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/publisherHomepage": { + "class_field": "Homepage", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/publisherInstitution": { + "class_field": "Institution", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/publisherAgentIdentifier": { + "class_field": "AgentIdentifier", + "substring": "no", + "element_type": "java.lang.String" + } + } + }, + "NativeSubject": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/prefLabel": { + "class_field": "PrefLabel", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/rdfAbout": { + "class_field": "RdfAbout", + "substring": "yes", + "element_type": "java.lang.String" + } + } + }, + "DerivedSubject": { + "class_type": "prototype", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/prefLabel": { + "class_field": "PrefLabel", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/source": { + "class_field": "Source", + "substring": "yes", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/id": { + "class_field": "Id", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/label": { + "class_field": "PrefLabel", + "substring": "yes", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/lang": { + "class_field": "Lang", + "substring": "yes", + "element_type": "java.lang.String" + } + } + }, + "AriadnePlusEntry": { + "class_type": "unique", + "mappings": { + "https://www.ariadne-infrastructure.eu/property/typeURI": { + "class_field": "TypeURI", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/typeLabel": { + "class_field": "TypeLabel", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/accessPolicy": { + "class_field": "AccessPolicy", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/identifier": { + "class_field": "Identifier", + "substring": "yes", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/publisher": { + "class_field": "Publisher", + "external_reference": "PublisherInfo", + "substring": "no" + }, + "https://www.ariadne-infrastructure.eu/property/archeologicalResourceType": { + "class_field": "AriadneSubject", + "external_reference": "AriadneSubject", + "substring": "no" + }, + "https://www.ariadne-infrastructure.eu/property/issued": { + "class_field": "Issued", + "element_type": "java.lang.String", + "substring": "no" + }, + "https://www.ariadne-infrastructure.eu/property/created": { + "class_field": "WasCreated", + "element_type": "java.lang.String", + "substring": "no" + }, + "https://www.ariadne-infrastructure.eu/property/resourceType": { + "class_field": "ResourceType", + "element_type": "java.lang.String", + "substring": "no" + }, + "https://www.ariadne-infrastructure.eu/property/modified": { + "class_field": "Modified", + "element_type": "java.lang.String", + "substring": "no" + }, + "https://www.ariadne-infrastructure.eu/property/nativeSubject": { + "class_field": "NativeSubject", + "substring": "no", + "external_reference": "NativeSubject" + }, + "https://www.ariadne-infrastructure.eu/property/derivedSubject": { + "class_field": "DerivedSubject", + "substring": "no", + "external_reference": "DerivedSubject" + }, + "https://www.ariadne-infrastructure.eu/property/spatialRegion": { + "class_field": "Spatial", + "substring": "no", + "external_reference": "Spatial" + }, + "https://www.ariadne-infrastructure.eu/property/spatialRegionPoint": { + "class_field": "Spatial", + "substring": "no", + "external_reference": "Spatial" + }, + "https://www.ariadne-infrastructure.eu/property/spatialRegionBox": { + "class_field": "Spatial", + "substring": "no", + "external_reference": "Spatial" + }, + "https://www.ariadne-infrastructure.eu/property/spatialRegionPolygon": { + "class_field": "Spatial", + "substring": "no", + "external_reference": "Spatial" + }, + "https://www.ariadne-infrastructure.eu/property/spatialRegionWKTPolygon": { + "class_field": "Spatial", + "substring": "no", + "external_reference": "Spatial" + }, + "https://www.ariadne-infrastructure.eu/property/landingPage": { + "class_field": "LandingPage", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/titleInfo": { + "class_field": "Title", + "substring": "no", + "external_reference": "TextLang" + }, + "https://www.ariadne-infrastructure.eu/property/accessRights": { + "class_field": "AccessRights", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/descriptionInfo": { + "class_field": "Description", + "substring": "no", + "external_reference": "TextLang" + }, + "https://www.ariadne-infrastructure.eu/property/creator": { + "class_field": "Creator", + "substring": "no", + "external_reference": "AgentInfo" + }, + "https://www.ariadne-infrastructure.eu/property/contributor": { + "class_field": "Contributor", + "substring": "no", + "external_reference": "AgentInfo" + }, + "https://www.ariadne-infrastructure.eu/property/legalResponsible": { + "class_field": "Responsible", + "substring": "no", + "external_reference": "AgentInfo" + }, + "https://www.ariadne-infrastructure.eu/property/owner": { + "class_field": "Owner", + "substring": "no", + "external_reference": "AgentInfo" + }, + "https://www.ariadne-infrastructure.eu/property/originalId": { + "class_field": "OriginalId", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/temporal": { + "class_field": "Temporal", + "substring": "no", + "external_reference": "Temporal" + }, + "https://www.ariadne-infrastructure.eu/property/temporalNative": { + "class_field": "NativePeriod", + "substring": "no", + "external_reference": "NativePeriod" + }, + "https://www.ariadne-infrastructure.eu/property/language": { + "class_field": "Language", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/partOf": { + "class_field": "UniqueIsPartOf", + "substring": "no", + "element_type": "java.lang.String" + }, + "https://www.ariadne-infrastructure.eu/property/about": { + "class_field": "Is_about", + "substring": "no", + "external_reference": "AriadneResource" + }, + "https://www.ariadne-infrastructure.eu/property/image": { + "class_field": "DigitalImage", + "substring": "no", + "external_reference": "DigitalImage" + } + } + } } \ No newline at end of file