diff --git a/.ddev/commands/host/install b/.ddev/commands/host/install index 63278f58ca04691bd5eec81a3fb13d7c0bfe839b..cd8164237bbb6427b1198760b251388621dc1af5 100755 --- a/.ddev/commands/host/install +++ b/.ddev/commands/host/install @@ -6,4 +6,5 @@ ddev solr:empty ddev exec vendor/bin/run toolkit:install-clean +ddev virtuoso:clear-data ddev exec vendor/bin/run dev:install-modules diff --git a/.ddev/commands/host/rebuild b/.ddev/commands/host/rebuild index f18406733b47fc5ba8be6c3dc2893b704f296fbc..d72bb06e31245cad519b407a4547c93149449122 100755 --- a/.ddev/commands/host/rebuild +++ b/.ddev/commands/host/rebuild @@ -5,7 +5,7 @@ ## Example: ddev rebuild ddev solr:restore -ddev virtuoso:restore ddev run toolkit:install-clone +ddev virtuoso:clear-data ddev run dev:install-modules ddev drush user:unblock --uid=1 diff --git a/.ddev/commands/host/restore_databases b/.ddev/commands/host/restore_databases index bd882f6a06fe052451215b04de0c8e61c7890613..86fbc03bebeda61c23bf62c583d55e399c1efd5e 100755 --- a/.ddev/commands/host/restore_databases +++ b/.ddev/commands/host/restore_databases @@ -4,6 +4,5 @@ ## Usage: restore-databases ddev solr:restore -ddev virtuoso:restore ddev run drupal:settings site-clone ddev run toolkit:install-dump --dumpfile=mysql.tar diff --git a/.ddev/commands/virtuoso/virtuoso_restore b/.ddev/commands/virtuoso/virtuoso_restore deleted file mode 100755 index 71c4cf2a639712afdf5b7636ceb283fe67c48bed..0000000000000000000000000000000000000000 --- a/.ddev/commands/virtuoso/virtuoso_restore +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -## Description: Restore Virtuoso from a snapshot -## Usage: virtuoso:restore - -VIRTUOSO_HOME=/opt/virtuoso-opensource -VIRTUOSO_BIN="$VIRTUOSO_HOME/bin" -VIRTUOSO_DB="$VIRTUOSO_HOME/database" - -# Empty the backend. -echo "shutdown();" | $VIRTUOSO_BIN/isql localhost dba dba || true -rm -f virtuoso-temp.db virtuoso.db virtuoso.log virtuoso.pxa virtuoso.trx - -# Restore and restart. -cd ../tmp && $VIRTUOSO_BIN/virtuoso-t +configfile $VIRTUOSO_DB/virtuoso.ini +restore-backup VIRTUOSO_DUMP_ -test -f $VIRTUOSO_DB/virtuoso.lck || virtuoso-t +configfile $VIRTUOSO_DB/virtuoso.ini +wait - -echo "DB.DBA.USER_CREATE('SPARQL_RO', 'readonly');" | $VIRTUOSO_BIN/isql localhost dba dba || true -echo 'GRANT SPARQL_SELECT to "SPARQL_RO";' | $VIRTUOSO_BIN/isql localhost dba dba || true diff --git a/.ddev/commands/web/virtuoso_clear_data b/.ddev/commands/web/virtuoso_clear_data new file mode 100755 index 0000000000000000000000000000000000000000..33f770500106b344f1bc62739f3ae19946530e1e --- /dev/null +++ b/.ddev/commands/web/virtuoso_clear_data @@ -0,0 +1,7 @@ +#!/bin/bash + +## Description: Clear the <http://data? Virtuoso graph +## Usage: virtuoso:clear-data + +vendor/bin/drush eval "Drupal::service('rdf_sync.connection')->update('CLEAR GRAPH <http://data>')" +echo "Cleared the <http://data> graph." diff --git a/.opts.yml b/.opts.yml index 2285d3f929b241db982f0f1cb2a73fb092d75bcb..ed37289e909569f477dceaaaf414d771f4fba2b9 100644 --- a/.opts.yml +++ b/.opts.yml @@ -33,10 +33,10 @@ solr_rollback: True solr_refresh_acc: True solr_asda: True -virtuoso_image: registry.fpfis.eu/ec-europa/digit-joinup-reference:virtuoso -virtuoso_rollback: True -virtuoso_refresh_acc: True -virtuoso_asda: True +virtuoso_image: registry.fpfis.eu/fpfis/virtuoso:latest +virtuoso_rollback: False +virtuoso_refresh_acc: False +virtuoso_asda: False composer_version: 2 diff --git a/composer.json b/composer.json index ee4fef2ce31cd9718a087ad43c813c171f33fd7e..5cc3c3811cf1b04fcd528680b25ac12033fc7991 100644 --- a/composer.json +++ b/composer.json @@ -162,8 +162,6 @@ "nicwortel/behat-unused-step-definitions-extension": "^1.2", "palantirnet/drupal-rector": "^0.20.1", "pear/http_request2": "~2.4", - "php-task-runner/composer": "dev-toolkit-runner", - "php-task-runner/sparql": "dev-toolkit-runner", "phpro/grumphp-shim": "^2.6", "phpspec/prophecy-phpunit": "^2", "phpstan/extension-installer": "^1.3", diff --git a/composer.lock b/composer.lock index 16d07dcef49451ce4cc93fba2e01961cb0f44351..033fdd4ea6e4db51f3eb7af9d0a7623952518326 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a4e28db901fc0b9ceb4c0695a6231fc6", + "content-hash": "0190ea5848d3158a503eacee9aa99c7d", "packages": [ { "name": "asm89/stack-cors", @@ -21454,158 +21454,6 @@ }, "time": "2024-03-27T12:14:49+00:00" }, - { - "name": "php-task-runner/composer", - "version": "dev-toolkit-runner", - "source": { - "type": "git", - "url": "https://github.com/php-task-runner/composer.git", - "reference": "26d77e2780f8dfe586f0e61c491f24e6daaffa33" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-task-runner/composer/zipball/26d77e2780f8dfe586f0e61c491f24e6daaffa33", - "reference": "26d77e2780f8dfe586f0e61c491f24e6daaffa33", - "shasum": "" - }, - "require": { - "ec-europa/toolkit": "^9 || ^10", - "ext-json": "*", - "php": ">=7.4" - }, - "require-dev": { - "composer/composer": "^2", - "phpunit/phpunit": "~7 || ~8 || ~9", - "slevomat/coding-standard": "~6", - "squizlabs/php_codesniffer": "~3" - }, - "type": "library", - "autoload": { - "psr-4": { - "TaskRunner\\Composer\\": "./src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "EUPL-1.2" - ], - "authors": [ - { - "name": "Claudiu Cristea", - "email": "clau.cristea@gmail.com" - } - ], - "description": "Provides Composer commands for OpenEuropa Task Runner", - "keywords": [ - "task-runner" - ], - "support": { - "issues": "https://github.com/php-task-runner/composer/issues", - "source": "https://github.com/php-task-runner/composer/tree/toolkit-runner" - }, - "time": "2023-12-06T18:01:36+00:00" - }, - { - "name": "php-task-runner/sparql", - "version": "dev-toolkit-runner", - "source": { - "type": "git", - "url": "https://github.com/php-task-runner/sparql.git", - "reference": "fc8043f94e3cd2ca6e16703c36acf9913c2b356d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-task-runner/sparql/zipball/fc8043f94e3cd2ca6e16703c36acf9913c2b356d", - "reference": "fc8043f94e3cd2ca6e16703c36acf9913c2b356d", - "shasum": "" - }, - "require": { - "ec-europa/toolkit": "^9 || ^10", - "php": ">=7.4", - "php-task-runner/sparql-robo-tasks": "1.x-dev" - }, - "require-dev": { - "phpunit/phpunit": "~7 || ~8 || ~9", - "slevomat/coding-standard": "~6", - "squizlabs/php_codesniffer": "~3" - }, - "type": "library", - "autoload": { - "psr-4": { - "TaskRunner\\Sparql\\": "./src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "EUPL-1.2" - ], - "authors": [ - { - "name": "Claudiu Cristea", - "email": "clau.cristea@gmail.com" - } - ], - "description": "Provides SPARQL commands for OpenEuropa Task Runner", - "keywords": [ - "task-runner" - ], - "support": { - "issues": "https://github.com/php-task-runner/sparql/issues", - "source": "https://github.com/php-task-runner/sparql/tree/toolkit-runner" - }, - "time": "2024-01-08T11:35:09+00:00" - }, - { - "name": "php-task-runner/sparql-robo-tasks", - "version": "1.x-dev", - "source": { - "type": "git", - "url": "https://github.com/php-task-runner/sparql-robo-tasks.git", - "reference": "dcd4467e0ab14c99f17db930a1c0a26a172a9b94" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-task-runner/sparql-robo-tasks/zipball/dcd4467e0ab14c99f17db930a1c0a26a172a9b94", - "reference": "dcd4467e0ab14c99f17db930a1c0a26a172a9b94", - "shasum": "" - }, - "require": { - "consolidation/robo": "^1.0 || ^2.0 || ^3.0 || ^4 || ^5", - "easyrdf/easyrdf": "^1.1", - "php": ">=7.4" - }, - "require-dev": { - "phpunit/phpunit": "~7 || ~8 || ~9", - "slevomat/coding-standard": "~6", - "squizlabs/php_codesniffer": "~3" - }, - "default-branch": true, - "type": "robo-tasks", - "autoload": { - "psr-4": { - "Robo\\Sparql\\": "./src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "EUPL-1.2" - ], - "authors": [ - { - "name": "Claudiu Cristea", - "email": "clau.cristea@gmail.com" - } - ], - "description": "Provides SPARQL commands for Robo", - "keywords": [ - "task-runner" - ], - "support": { - "issues": "https://github.com/php-task-runner/sparql-robo-tasks/issues", - "source": "https://github.com/php-task-runner/sparql-robo-tasks/tree/1.x" - }, - "time": "2024-07-09T10:27:09+00:00" - }, { "name": "phpcompatibility/php-compatibility", "version": "9.3.5", @@ -25059,8 +24907,6 @@ "drupal/masquerade": 5, "drupal/node_revision_delete": 5, "drupal/views_block_area": 10, - "php-task-runner/composer": 20, - "php-task-runner/sparql": 20, "weitzman/drupal-test-traits": 20 }, "prefer-stable": true, diff --git a/resources/adms/adms-definition.rdf b/resources/adms/adms-definition.rdf deleted file mode 100644 index 35e9b8eacb5fc3a58eb0c40594f42ae8b2291b33..0000000000000000000000000000000000000000 --- a/resources/adms/adms-definition.rdf +++ /dev/null @@ -1,767 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:ns0="http://labs.mondeca.com/vocab/voaf#" - xmlns:dc="http://purl.org/dc/terms/" - xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" - xmlns:schema="http://schema.org/" - xmlns:foaf="http://xmlns.com/foaf/0.1/" - xmlns:ns1="http://purl.org/vocab/vann/" - xmlns:wdrs="http://www.w3.org/2007/05/powder-s#"> - - <rdf:Description rdf:about="http://www.w3.org/ns/adms#"> - <rdf:type rdf:resource="http://labs.mondeca.com/vocab/voaf#Vocabulary"/> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Ontology"/> - <ns0:specializes rdf:resource="http://www.w3.org/ns/dcat#"/> - <dc:title xml:lang="en">Asset Description Metadata Schema - Application Profile(ADMS-AP)</dc:title> - <rdfs:label xml:lang="en">Asset Description Metadata Schema - Application Profile(ADMS-AP)</rdfs:label> - <dc:abstract xml:lang="en">ADMS is a profile of DCAT, used to describe semantic assets (or just 'Assets'), defined as highly reusable metadata (e.g. xml schemata, generic data models) and reference data (e.g. code lists, taxonomies, dictionaries, vocabularies) that are used for eGovernment system development.</dc:abstract> - <dc:creator> - <rdf:Description> - <schema:affiliation rdf:resource="http://www.w3.org/data#W3C"/> - <rdfs:seeAlso rdf:resource="http://philarcher.org/foaf.rdf#me"/> - <foaf:homepage rdf:resource="http://www.w3.org/People/all#phila"/> - <foaf:name>Phil Archer</foaf:name> - </rdf:Description> - </dc:creator> - - <dc:creator> - <rdf:Description> - <schema:affiliation> - <rdf:Description> - <foaf:homepage rdf:resource="http://ies.jrc.ec.europa.eu/DE"/> - <foaf:name>European Commission, Joint Research Centre </foaf:name> - </rdf:Description> - </schema:affiliation> - - <rdfs:seeAlso rdf:resource="http://andrea-perego.name/foaf/#me"/> - <foaf:homepage rdf:resource="http://andrea-perego.name/"/> - <foaf:name>Andrea Perego</foaf:name> - </rdf:Description> - </dc:creator> - - <dc:creator> - <rdf:Description> - <rdfs:seeAlso rdf:resource="http://makxdekkers.com/makxdekkers.rdf#me"/> - <foaf:homepage rdf:resource="http://makxdekkers.com/"/> - <foaf:name>Makx Dekkers</foaf:name> - </rdf:Description> - </dc:creator> - - <foaf:maker> - <rdf:Description> - <foaf:name>Government Linked Data WG, based on output from the ADMS Working Group</foaf:name> - <foaf:homepage rdf:resource="http://www.w3.org/2011/gld/"/> - </rdf:Description> - </foaf:maker> - - <dc:description>This is the RDF encoding of the Asset Description Metadata Schema, originally - developed under the European Union's ISA Programme and further developed by the W3C Government Linked Data Working Group. - It re-uses terms from several other vocabularies, notably Dublin Core, with elements of SKOS, FOAF and more. </dc:description> - <dc:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2016-5-11</dc:modified> - <ns1:preferredNamespacePrefix>adms</ns1:preferredNamespacePrefix> - <ns1:preferredNamespaceUri>http://www.w3.org/ns/adms#</ns1:preferredNamespaceUri> - <rdfs:comment xml:lang="en">This file specifies the set of RDF classes and properties used in ADMS-AP</rdfs:comment> - <wdrs:describedby rdf:resource="http://www.w3.org/TR/vocab-adms"/> - </rdf:Description> - - <rdfs:Class rdf:about="http://www.w3.org/ns/dcat#Dataset"> - <dc:identifier xml:lang="en">dcat:Dataset</dc:identifier> - <rdfs:comment xml:lang="en">Abstract entity that reflects the intellectual content of an Asset and represents those characteristics that are independent of its physical embodiment. This abstract entity combines the FRBR entities work (a distinct intellectual or artistic creation) and expression (the intellectual or artistic realization of a work). The physical embodiment of an Asset is called an Asset Distribution. A particular Asset may have zero or more Distributions.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset</rdfs:label> - <ns1:usageNote xml:lang="en">Mandatory class.</ns1:usageNote> - </rdfs:Class> - - <rdf:Property rdf:about="http://www.w3.org/ns/dcat#contactPoint"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dcat:contactPoint</dc:identifier> - <rdfs:comment xml:lang="en">Contact point for further information about the Asset, where errors can be reported or suggestions can be made.</rdfs:comment> - <rdfs:comment xml:lang="en">Contact point for further information about the Repository.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset - contact point</rdfs:label> - <rdfs:label xml:lang="en">Asset Repository - contact Point</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2006/vcard/ns#Kind"/> - <rdfs:range rdf:resource="http://www.w3.org/2006/vcard/ns#vKind"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/description"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">dct:description</dc:identifier> - <rdfs:comment xml:lang="en">Descriptive text for the Asset.</rdfs:comment> - <rdfs:comment xml:lang="en">Descriptive text for the Distribution.</rdfs:comment> - <rdfs:comment xml:lang="en">Descriptive text for the Repository.</rdfs:comment> - <rdfs:comment xml:lang="en">Description of the Licence.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - description</rdfs:label> - <rdfs:label xml:lang="en">Asset Distribution - description</rdfs:label> - <rdfs:label xml:lang="en">Asset Repository - description</rdfs:label> - <rdfs:label xml:lang="en">Licence - description</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <rdfs:domain rdf:resource="http://purl.org/dc/terms/LicenseDocument"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/publisher"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dct:publisher</dc:identifier> - <rdfs:comment xml:lang="en">Organisation making the Asset available; the publisher is the Agent that publishes the Asset, not the Agent that publishes the metadata about it.</rdfs:comment> - <rdfs:comment xml:lang="en">Organisation making the Distribution available; the publisher is the Agent that publishes the Distribution, not the Agent that publishes the metadata about it.</rdfs:comment> - <rdfs:comment xml:lang="en">Organisation making the Repository available; the publisher is the Agent that publishes the Repository, not the Agent that publishes the metadata about it.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - publisher</rdfs:label> - <rdfs:label xml:lang="en">Asset Distribution - publisher</rdfs:label> - <rdfs:label xml:lang="en">Asset Repository - publisher</rdfs:label> - <rdfs:range rdf:resource="http://xmlns.com/foaf/0.1/Agent"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/title"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">dct:title</dc:identifier> - <rdfs:comment xml:lang="en">Name of the Asset.</rdfs:comment> - <rdfs:comment xml:lang="en">Name of the Distribution.</rdfs:comment> - <rdfs:comment xml:lang="en">Name of the Repository.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - title</rdfs:label> - <rdfs:label xml:lang="en">Asset Distribution - title</rdfs:label> - <rdfs:label xml:lang="en">Asset Repository - title</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/type"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dct:type</dc:identifier> - <rdfs:comment xml:lang="en">Type of the Asset, using a controlled vocabulary - EIRA vocabulary >> https://joinup.ec.europa.eu/svn/eia/taxonomy/EIRA_SKOS.rdf</rdfs:comment> - <rdfs:comment xml:lang="en">The type of publisher - ADMS Publisher Type vocabulary >> http://purl.org/adms/publishertype/</rdfs:comment> - <rdfs:comment xml:lang="en">Label for the Interoperability Level - ADMS Licence Type vocabulary >> http://purl.org/adms/licencetype/ ; use only one of the four terms :PublicDomain, :OSIcompliant, :NonOSIcompliant, :UnknownIPR</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - type</rdfs:label> - <rdfs:label xml:lang="en">Publisher - type</rdfs:label> - <rdfs:label xml:lang="en">Licence - type</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://xmlns.com/foaf/0.1/Agent"/> - <rdfs:domain rdf:resource="http://purl.org/dc/terms/LicenseDocument"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/dcat#distribution"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dcat:distribution</dc:identifier> - <rdfs:comment xml:lang="en">Implementation of the Asset in a particular format.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset - distribution</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/dcat#keyword"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">dcat:keyword</dc:identifier> - <rdfs:comment xml:lang="en">Word of phrase to describe the Asset.</rdfs:comment> - <rdfs:comment xml:lang="en">Word of phrase to describe the Repository.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset - keyword</rdfs:label> - <rdfs:label xml:lang="en">Asset Repository - keyword</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/dcat#landingPage"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dcat:landingPage</dc:identifier> - <rdfs:comment xml:lang="en">Web page that provides access to the asset, its releases, distributions and/or additional information. It is intended to point to a landing page at the original asset provider, not to a page on a site of a third party, such as a catalogue or repository.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset - landing Page</rdfs:label> - <rdfs:range rdf:resource="http://xmlns.com/foaf/0.1/Document"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/dcat#theme"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dcat:theme</dc:identifier> - <rdfs:comment xml:lang="en">Theme or sector to which the Asset applies, using a controlled vocabulary - Dataset Theme Vocabulary >> http://publications.europa.eu/resource/authority/data-theme ; the values to be used for this property are the URIs of the concepts in the vocabulary</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset - theme</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/language"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dct:language</dc:identifier> - <rdfs:comment xml:lang="en">Language of the Asset, or language supported by software, using a controlled vocabulary - MDR Languages Named Authority List >> http://publications.europa.eu/resource/authority/language</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - language</rdfs:label> - <rdfs:range rdf:resource="http://purl.org/dc/terms/LinguisticSystem"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/relation"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dct:relation</dc:identifier> - <rdfs:comment xml:lang="en">Related resource, in particular a related asset.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - relation</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/spatial"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dct:spatial</dc:identifier> - <rdfs:comment xml:lang="en">Geographic region or jurisdiction to which the Asset applies, using a controlled vocabulary - MDR Countries Named Authority List >> http://publications.europa.eu/resource/authority/country ; MDR Places Named Authority List >> http://publications.europa.eu/resource/authority/place/</rdfs:comment> - <rdfs:comment xml:lang="en">Geographic region or jurisdiction to which the Repository applies, using a controlled vocabulary - MDR Countries Named Authority List >> http://publications.europa.eu/resource/authority/country ; MDR Places Named Authority List >> http://publications.europa.eu/resource/authority/place/</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - spatial</rdfs:label> - <rdfs:label xml:lang="en">Asset Repository - spatial</rdfs:label> - <rdfs:range rdf:resource="http://purl.org/dc/terms/Location"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/adms#includedAsset"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">adms:includedAsset</dc:identifier> - <rdfs:comment xml:lang="en">An Asset that is contained in the Asset being described.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/adms#"/> - <rdfs:label xml:lang="en">Asset - includedAsset</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/adms#status"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">adms:status</dc:identifier> - <rdfs:comment xml:lang="en">Status of the Asset in the context of a particular workflow process, using a controlled vocabulary - ADMS Status vocabulary >> http://purl.org/adms/status/ </rdfs:comment> - <rdfs:comment xml:lang="en">Description of changes between this version and the previous version of the Asset - ADMS Status vocabulary >> http://purl.org/adms/status/ </rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/adms#"/> - <rdfs:label xml:lang="en">Asset - status</rdfs:label> - <rdfs:label xml:lang="en">Asset Distribution - version Notes</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - <ns1:usageNote xml:lang="en">Optional Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/adms#translation"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">adms:translation</dc:identifier> - <rdfs:comment xml:lang="en">Translation of the Asset.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/adms#"/> - <rdfs:label xml:lang="en">Asset - translation</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/adms#versionNotes"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">adms:versionNotes</dc:identifier> - <rdfs:comment xml:lang="en">Description of changes between this version and the previous version of the Asset.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/adms#"/> - <rdfs:label xml:lang="en">Asset - version Notes</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/identifier"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">dct:identifier</dc:identifier> - <rdfs:comment xml:lang="en">Main identifier for the Asset, e.g. the URI or other unique identifier in the context of the Repository.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - identifier</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/issued"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">dct:issued</dc:identifier> - <rdfs:comment xml:lang="en">Date of formal issuance of this version of the Asset.</rdfs:comment> - <rdfs:comment xml:lang="en">Date of formal issuance of this version of the Distribution.</rdfs:comment> - <rdfs:comment xml:lang="en">Date of formal issuance of the Repository.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - issued</rdfs:label> - <rdfs:label xml:lang="en">Asset Distribution - issued</rdfs:label> - <rdfs:label xml:lang="en">Asset Repository - issued</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <ns1:usageNote xml:lang="en">rdfs:Literal typed as xsd:dateTime. Optional Property - 0..1</ns1:usageNote> - <ns1:usageNote xml:lang="en">rdfs:Literal typed as xsd:DateTime. Optional Property - 0..1</ns1:usageNote> - <ns1:usageNote xml:lang="en">rdfs:Literal typed as xsd:dateTime. Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/isVersionOf"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dct:isVersionOf</dc:identifier> - <rdfs:comment xml:lang="en">An Asset that is the solution of which this Asset is a release.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - is Version Of</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/hasVersion"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dct:hasVersion</dc:identifier> - <rdfs:comment xml:lang="en">An Asset that is a release of this Asset.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - has Version</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/modified"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">dct:modified</dc:identifier> - <rdfs:comment xml:lang="en">Date of latest update of this Asset.</rdfs:comment> - <rdfs:comment xml:lang="en">Date of latest update of this Distribution.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - modified</rdfs:label> - <rdfs:label xml:lang="en">Asset Distribution - modified</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <ns1:usageNote xml:lang="en">rdfs:Literal typed as xsd:dateTime. Optional Property - 0..1</ns1:usageNote> - <ns1:usageNote xml:lang="en">rdfs:Literal typed as xsd:DateTime. Optional Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://xmlns.com/foaf/0.1/page"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">foaf:page</dc:identifier> - <rdfs:comment xml:lang="en">Documentation that contains information related to the asset.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://xmlns.com/foaf/0.1/"/> - <rdfs:label xml:lang="en">Asset - page</rdfs:label> - <rdfs:range rdf:resource="http://xmlns.com/foaf/0.1/Document"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/2002/07/owl#versionInfo"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">owl:versionInfo</dc:identifier> - <rdfs:comment xml:lang="en">Version number or other designation of the Asset.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - version Info</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/2004/02/skos/core#altLabel"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">skos:altLabel</dc:identifier> - <rdfs:comment xml:lang="en">Alternative name for the Asset.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset - alt Label</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdfs:Class rdf:about="http://www.w3.org/2004/02/skos/core#Concept"> - <dc:identifier xml:lang="en">skos:Concept</dc:identifier> - <rdfs:comment xml:lang="en">Classification of an Asset according to a controlled vocabulary.</rdfs:comment> - <rdfs:comment xml:lang="en">Interoperability Level of the Asset</rdfs:comment> - <rdfs:comment xml:lang="en">Machine-readable language in which a Distribution is expressed.</rdfs:comment> - <rdfs:comment xml:lang="en">Indication of the maturity of an Asset or a Distribution.</rdfs:comment> - <rdfs:comment xml:lang="en">Concept or subject to which an Asset applies, e.g. 'law' or 'environment'.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core#"/> - <rdfs:label xml:lang="en">Asset type</rdfs:label> - <rdfs:label xml:lang="en">Interoperability Level</rdfs:label> - <rdfs:label xml:lang="en">Representation Technique</rdfs:label> - <rdfs:label xml:lang="en">Status</rdfs:label> - <rdfs:label xml:lang="en">Theme</rdfs:label> - <ns1:usageNote xml:lang="en">Mandatory class</ns1:usageNote> - <ns1:usageNote xml:lang="en">Optional class</ns1:usageNote> - </rdfs:Class> - - <rdf:Property rdf:about="http://www.w3.org/2004/02/skos/core#label"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">skos:label</dc:identifier> - <rdfs:comment xml:lang="en">Label for the Asset Type.</rdfs:comment> - <rdfs:comment xml:lang="en">Label for the Interoperability Level</rdfs:comment> - <rdfs:comment xml:lang="en">Label for the Representation Technique.</rdfs:comment> - <rdfs:comment xml:lang="en">Label for the Status.</rdfs:comment> - <rdfs:comment xml:lang="en">Label for the Theme.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core#"/> - <rdfs:label xml:lang="en">Asset Type - label</rdfs:label> - <rdfs:label xml:lang="en">Interoperability Level - label</rdfs:label> - <rdfs:label xml:lang="en">Representation Technique - label</rdfs:label> - <rdfs:label xml:lang="en">Status - label</rdfs:label> - <rdfs:label xml:lang="en">Theme - label</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/2004/02/skos/core#inScheme"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">skos:inScheme</dc:identifier> - <rdfs:comment xml:lang="en">Concept scheme in which the Asset Type is included.</rdfs:comment> - <rdfs:comment xml:lang="en">Concept scheme in which the Interoperability Level is included.</rdfs:comment> - <rdfs:comment xml:lang="en">Concept scheme in which the Representation Technique is included.</rdfs:comment> - <rdfs:comment xml:lang="en">Concept scheme in which the Status is included.</rdfs:comment> - <rdfs:comment xml:lang="en">Concept scheme in which the Theme is included.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core#"/> - <rdfs:label xml:lang="en">Asset Type - in Scheme</rdfs:label> - <rdfs:label xml:lang="en">Interoperability Level - in Scheme</rdfs:label> - <rdfs:label xml:lang="en">Representation Technique - in Scheme</rdfs:label> - <rdfs:label xml:lang="en">Status - in Scheme</rdfs:label> - <rdfs:label xml:lang="en">Theme - in Scheme</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2004/02/skos/core#ConceptScheme"/> - <rdfs:domain rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdfs:Class rdf:about="http://www.w3.org/2006/vcard/ns#Kind"> - <dc:identifier xml:lang="en">v:Kind</dc:identifier> - <rdfs:comment xml:lang="en">Contact point for further information about an Asset.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2006/vcard/ns#"/> - <rdfs:label xml:lang="en">Contact Information</rdfs:label> - <ns1:usageNote xml:lang="en">Mandatory class</ns1:usageNote> - </rdfs:Class> - - <rdf:Property rdf:about="http://www.w3.org/2006/vcard/ns#fn"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">v:fn</dc:identifier> - <rdfs:comment xml:lang="en">Full name of the contact.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2006/vcard/ns#"/> - <rdfs:label xml:lang="en">Contact Information - full name</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/2006/vcard/ns#Kind"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/2006/vcard/ns#hasEmail"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">v:hasEmail</dc:identifier> - <rdfs:comment xml:lang="en">e-mail address where comments and question for an Asset or Repository can be sent</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2006/vcard/ns#"/> - <rdfs:label xml:lang="en">Contact Information - has Email</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2006/vcard/ns#Email"/> - <rdfs:domain rdf:resource="http://www.w3.org/2006/vcard/ns#Kind"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/2006/vcard/ns#hasAddress"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">v:hasAddress</dc:identifier> - <rdfs:comment xml:lang="en">Full address of the contact</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2006/vcard/ns#"/> - <rdfs:label xml:lang="en">Contact Information - has Address</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2006/vcard/ns#Address"/> - <rdfs:domain rdf:resource="http://www.w3.org/2006/vcard/ns#Kind"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/2006/vcard/ns#hasTelephone"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">v:hasTelephone</dc:identifier> - <rdfs:comment xml:lang="en">Telephone number of the contact</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2006/vcard/ns#"/> - <rdfs:label xml:lang="en">Contact Information - has Telephone</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/2006/vcard/ns#Kind"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/2006/vcard/ns#hasURL"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">v:hasURL</dc:identifier> - <rdfs:comment xml:lang="en">Webpage of the contact</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2006/vcard/ns#"/> - <rdfs:label xml:lang="en">Contact Information - has URL</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/2006/vcard/ns#Kind"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdfs:Class rdf:about="http://xmlns.com/foaf/0.1/Agent"> - <dc:identifier xml:lang="en">foaf:Agent</dc:identifier> - <rdfs:comment xml:lang="en">Organisation that makes information available.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://xmlns.com/foaf/0.1/"/> - <rdfs:label xml:lang="en">Publisher</rdfs:label> - <ns1:usageNote xml:lang="en">Mandatory class</ns1:usageNote> - </rdfs:Class> - - <rdf:Property rdf:about="http://xmlns.com/foaf/0.1/name"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">foaf:name</dc:identifier> - <rdfs:comment xml:lang="en">Name of the person or organisation.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://xmlns.com/foaf/0.1/"/> - <rdfs:label xml:lang="en">Publisher - name</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://xmlns.com/foaf/0.1/Agent"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..n</ns1:usageNote> - </rdf:Property> - - <rdfs:Class rdf:about="http://www.w3.org/ns/dcat#Distribution"> - <dc:identifier xml:lang="en">dcat:Distribution</dc:identifier> - <rdfs:comment xml:lang="en">Particular physical embodiment of an Asset, which is an example of the FRBR entity manifestation (the physical embodiment of an expression of a work). A Distribution is typically a downloadable computer file (but in principle it could also be a paper document or API response) that implements the intellectual content of an Asset. A particular Distribution is associated with one and only one Asset, while all Distributions of an Asset share the same intellectual content in different physical formats.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset Distribution</rdfs:label> - <ns1:usageNote xml:lang="en">Recommended class.</ns1:usageNote> - </rdfs:Class> - - <rdf:Property rdf:about="http://www.w3.org/ns/dcat#accessURL"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dcat:accessURL</dc:identifier> - <rdfs:comment xml:lang="en">URL of the Distribution.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset Distribution - access URL</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/license"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dct:license</dc:identifier> - <rdfs:comment xml:lang="en">Conditions or restrictions for (re)use of the Distribution; if there are multiple licences, the most 'open' one should be given. Whenever relevant, the URIs under the concept scheme identified by http://purl.org/adms/OSIlicence/ can be used.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset Distribution - licence</rdfs:label> - <rdfs:range rdf:resource="http://purl.org/dc/terms/LicenseDocument"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://purl.org/dc/terms/format"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dct:format</dc:identifier> - <rdfs:comment xml:lang="en">Media type of the Distribution, using a controlled vocabulary - MDR File Type Name Authority List >> http://publications.europa.eu/resource/authority/file-type </rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Asset Distribution - format</rdfs:label> - <rdfs:range rdf:resource="http://purl.org/dc/terms/MediaTypeOrExtent"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/adms#representationTechnique"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">adms:representationTechnique</dc:identifier> - <rdfs:comment xml:lang="en">Language in which the Distribution is expressed, using a controlled vocabulary - ADMS Representation Technique Vocabulary >> http://purl.org/adms/representationtechnique/ - Note: This is different from the file format, e.g. a ZIP file (file format) could contain an XML schema (representation technique) - </rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/adms#"/> - <rdfs:label xml:lang="en">Asset Distribution - representation Technique</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://schema.org/fileSize"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">schema:fileSize</dc:identifier> - <rdfs:comment xml:lang="en">Size of the file of the distribution.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://schema.org/"/> - <rdfs:label xml:lang="en">Asset Distribution - file Size</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://spdx.org/rdf/terms#checksum"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">spdx:checksum</dc:identifier> - <rdfs:comment xml:lang="en">Checksum of the distribution.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://spdx.org/rdf/terms#"/> - <rdfs:label xml:lang="en">Asset Distribution - checksum</rdfs:label> - <rdfs:range rdf:resource="http://spdx.org/rdf/terms#Checksum"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Distribution"/> - <ns1:usageNote xml:lang="en">Optional Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdfs:Class rdf:about="http://www.w3.org/ns/dcat#Catalog"> - <dc:identifier xml:lang="en">dcat:Catalog</dc:identifier> - <rdfs:comment xml:lang="en">System or service that provides facilities for storage and maintenance of descriptions of Assets and Asset Distributions, and functionality that allows users to search and access these descriptions. An Asset Repository will typically contain descriptions of several Assets and related Asset Distributions.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset Repository</rdfs:label> - <ns1:usageNote xml:lang="en">Optional class</ns1:usageNote> - </rdfs:Class> - - <rdf:Property rdf:about="http://www.w3.org/ns/dcat#dataset"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dcat:dataset</dc:identifier> - <rdfs:comment xml:lang="en">An Asset included in the Repository.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset Repository - dataset</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/ns/dcat#Dataset"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://www.w3.org/ns/dcat#themeTaxonomy"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">dcat:themeTaxonomy</dc:identifier> - <rdfs:comment xml:lang="en">Concept Scheme used to classify an Asset Repository's assets, using a controlled vocabulary - Dataset Theme Vocabulary >> http://publications.europa.eu/resource/authority/data-theme; the value to be used for this property is the URI of the vocabulary itself, i.e. the concept scheme, not the URIs of the concepts in the vocabulary.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/ns/dcat#"/> - <rdfs:label xml:lang="en">Asset Repository - theme Taxonomy</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2004/02/skos/core#ConceptScheme"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://xmlns.com/foaf/0.1/homepage"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">foaf:homepage</dc:identifier> - <rdfs:comment xml:lang="en">Web page that gives access to the Repository.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://xmlns.com/foaf/0.1/"/> - <rdfs:label xml:lang="en">Asset Repository - homepage</rdfs:label> - <rdfs:range rdf:resource="http://xmlns.com/foaf/0.1/Document"/> - <rdfs:domain rdf:resource="http://www.w3.org/ns/dcat#Catalog"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..1</ns1:usageNote> - </rdf:Property> - - <rdfs:Class rdf:about="http://spdx.org/rdf/terms#Checksum"> - <dc:identifier xml:lang="en">spdx:Checksum</dc:identifier> - <rdfs:comment xml:lang="en">Independently reproducible mechanism that permits unique identification of a specific Software Package.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://spdx.org/rdf/terms#"/> - <rdfs:label xml:lang="en">Checksum</rdfs:label> - <ns1:usageNote xml:lang="en">Optional class</ns1:usageNote> - </rdfs:Class> - - <rdf:Property rdf:about="http://spdx.org/rdf/terms#algorithm"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/> - <dc:identifier xml:lang="en">spdx:algorithm</dc:identifier> - <rdfs:comment xml:lang="en">SHA-1 is the only supported algorithm.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://spdx.org/rdf/terms#"/> - <rdfs:label xml:lang="en">Checksum - algorithm</rdfs:label> - <rdfs:range rdf:resource="http://spdx.org/rdf/terms#checksumAlgorithm_sha1"/> - <rdfs:domain rdf:resource="http://spdx.org/rdf/terms#Checksum"/> - <ns1:usageNote xml:lang="en">Mandatory Property - 1..1</ns1:usageNote> - </rdf:Property> - - <rdf:Property rdf:about="http://spdx.org/rdf/terms#checksumValue"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">spdx:checksumValue</dc:identifier> - <rdfs:comment xml:lang="en">Lower case hexadecimal encoded digest value produced using a specific algorithm.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://spdx.org/rdf/terms#"/> - <rdfs:label xml:lang="en">Checksum - checksum Value</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://spdx.org/rdf/terms#Checksum"/> - <ns1:usageNote xml:lang="en">rdfs:Literal typed as xsd:hexBinary. Mandatory Property - 1..1</ns1:usageNote> - </rdf:Property> - - <rdfs:Class rdf:about="http://xmlns.com/foaf/0.1/Document"> - <dc:identifier xml:lang="en">foaf:Document</dc:identifier> - <rdfs:comment xml:lang="en">Document that further describes an Asset or gives guidelines for its use.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://xmlns.com/foaf/0.1/"/> - <rdfs:label xml:lang="en">Documentation</rdfs:label> - <ns1:usageNote xml:lang="en">Optional class</ns1:usageNote> - </rdfs:Class> - - <rdfs:Class rdf:about="http://purl.org/dc/terms/Location"> - <dc:identifier xml:lang="en">dct:Location</dc:identifier> - <rdfs:comment xml:lang="en">Document that further describes an Asset or gives guidelines for its use.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Geographical Coverage</rdfs:label> - <ns1:usageNote xml:lang="en">Optional class</ns1:usageNote> - </rdfs:Class> - - <rdf:Property rdf:about="http://www.w3.org/2000/01/rdf-schema#label"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">rdfs:label</dc:identifier> - <rdfs:comment xml:lang="en">Name of the location</rdfs:comment> - <rdfs:comment xml:lang="en">Name of the Language.</rdfs:comment> - <rdfs:comment xml:lang="en">Label for the Licence.</rdfs:comment> - <rdfs:comment xml:lang="en">Label for the File format.</rdfs:comment> - <rdfs:comment xml:lang="en">Name of the Theme Taxonomy.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2000/01/rdf-schema#"/> - <rdfs:label xml:lang="en">Geographical Coverage - label</rdfs:label> - <rdfs:label xml:lang="en">Language - label</rdfs:label> - <rdfs:label xml:lang="en">Licence - label</rdfs:label> - <rdfs:label xml:lang="en">Media Type - label</rdfs:label> - <rdfs:label xml:lang="en">Theme Taxonomy - label</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://purl.org/dc/terms/Location"/> - <rdfs:domain rdf:resource="http://purl.org/dc/terms/LinguisticSystem"/> - <rdfs:domain rdf:resource="http://purl.org/dc/terms/LicenseDocument"/> - <rdfs:domain rdf:resource="http://purl.org/dc/terms/MediaTypeOrExtent"/> - <rdfs:domain rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - - <rdfs:Class rdf:about="http://purl.org/dc/terms/LinguisticSystem"> - <dc:identifier xml:lang="en">dct:LinguisticSystem</dc:identifier> - <rdfs:comment xml:lang="en">Language of an Asset that contains textual information, e.g. the language of the terms in a controlled vocabulary or the language in which a document is written.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Language</rdfs:label> - <ns1:usageNote xml:lang="en">Optional class</ns1:usageNote> - </rdfs:Class> - - <rdfs:Class rdf:about="http://purl.org/dc/terms/LicenseDocument"> - <dc:identifier xml:lang="en">dct:LicenseDocument</dc:identifier> - <rdfs:comment xml:lang="en">Conditions or restrictions that apply to the use of a Repository or Distribution, e.g. whether it is in the public domain, or that some restrictions apply such as attribution being required, or that it can only be used for non-commercial purposes etc.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Licence</rdfs:label> - <ns1:usageNote xml:lang="en">Optional class</ns1:usageNote> - </rdfs:Class> - - <rdfs:Class rdf:about="http://purl.org/dc/terms/MediaTypeOrExtent"> - <dc:identifier xml:lang="en">dct:MediaTypeOrExtent</dc:identifier> - <rdfs:comment xml:lang="en">Technical format in which a Distribution is available, e.g. PDF, XSD etc.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://purl.org/dc/terms/"/> - <rdfs:label xml:lang="en">Media Type</rdfs:label> - <ns1:usageNote xml:lang="en">Optional class</ns1:usageNote> - </rdfs:Class> - - <rdfs:Class rdf:about="http://www.w3.org/2004/02/skos/core#ConceptScheme"> - <dc:identifier xml:lang="en">skos:ConceptScheme</dc:identifier> - <rdfs:comment xml:lang="en">Controlled vocabulary that contains terms that are used as Themes for the Assets in a Repository.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core#"/> - <rdfs:label xml:lang="en">Theme Taxonomy</rdfs:label> - <ns1:usageNote xml:lang="en">Optional class</ns1:usageNote> - </rdfs:Class> - - <rdf:Property rdf:about="http://www.w3.org/2004/02/skos/core#hasTopConcept"> - <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/> - <dc:identifier xml:lang="en">skos:hasTopConcept</dc:identifier> - <rdfs:comment xml:lang="en">Concept that is the top level of the Theme Taxonomy.</rdfs:comment> - <rdfs:isDefinedBy rdf:resource="http://www.w3.org/2004/02/skos/core#"/> - <rdfs:label xml:lang="en">Theme Taxonomy - has Top Concept</rdfs:label> - <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/> - <rdfs:domain rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/> - <ns1:usageNote xml:lang="en">Recommended Property - 0..n</ns1:usageNote> - </rdf:Property> - -</rdf:RDF> diff --git a/resources/runner/dev.yml b/resources/runner/dev.yml index 33e64dec3d08911126f3576b8ceb7d969fbd1847..99d86f16e56c34ea8e06313080d33a8f64129e33 100644 --- a/resources/runner/dev.yml +++ b/resources/runner/dev.yml @@ -188,9 +188,3 @@ commands: options: yes: null root: ${joinup.site_dir} - - dev:import-sparql-fixtures: - - task: run - command: virtuoso:import-fixtures - arguments: - - resources/adms/adms-definition.rdf diff --git a/resources/runner/toolkit.yml b/resources/runner/toolkit.yml index 9ffa3418f428b407d0d201e7f1912a8aa1b228c8..c3877082ceba1334300cacf27c8d2bcd5722c9fc 100644 --- a/resources/runner/toolkit.yml +++ b/resources/runner/toolkit.yml @@ -95,13 +95,6 @@ commands: toolkit:install-clean: - task: run command: joinup:environment - # Temporary fix. - - task: run - command: sparql:query - arguments: - - 'DELETE { GRAPH ?g { ?s ?p ?o . }} WHERE { GRAPH ?g { ?s ?p ?o . } FILTER (STRSTARTS(STR(?g), "no prefix"))}' - - task: run - command: sparql:empty - task: exec command: ${drush.bin} memcache:flush-all - task: run @@ -112,8 +105,6 @@ commands: command: drupal:site-install options: existing-config: null - - task: run - command: dev:import-sparql-fixtures - task: run command: testing:install-modules - task: run diff --git a/src/TaskRunner/Commands/VirtuosoCommands.php b/src/TaskRunner/Commands/VirtuosoCommands.php deleted file mode 100644 index 3b3bfed4b62e10c313c054b2dbc976ae8bea7e0b..0000000000000000000000000000000000000000 --- a/src/TaskRunner/Commands/VirtuosoCommands.php +++ /dev/null @@ -1,42 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace Joinup\TaskRunner\Commands; - -use EcEuropa\Toolkit\TaskRunner\AbstractCommands; -use Robo\Collection\CollectionBuilder; -use Robo\Sparql\Tasks\Sparql\loadTasks; - -/** - * Provides Interoperable Europe Portal specific commands for Virtuoso backend. - */ -class VirtuosoCommands extends AbstractCommands { - - use loadTasks; - - /** - * Imports RDF data from fixture files into Virtuoso storage. - * - * @param string[] $files - * A list of files to be imported. The file base name, without extension is - * used as graph URI host. For example the triples from path/to/content.rdf - * will be stored in the http://content graph. - * - * @return \Robo\Collection\CollectionBuilder - * The Robo collection builder. - * - * @command virtuoso:import-fixtures - */ - public function importFixtures(array $files): CollectionBuilder { - $config = $this->getConfig(); - $endpointUrl = "http://{$config->get('sparql.host')}:{$config->get('sparql.port')}/sparql-graph-crud"; - $taskImport = $this->taskSparqlImportFromFile()->setEndpointUrl($endpointUrl); - foreach ($files as $fileName) { - $graphUri = 'http://' . strtolower(pathinfo($fileName, PATHINFO_FILENAME)); - $taskImport->addTriples($graphUri, $fileName); - } - return $this->collectionBuilder()->addTask($taskImport); - } - -} diff --git a/tests/features/adms_ap_compliance.feature b/tests/features/adms_ap_compliance.feature index a23d6ae8c4a1cf1e722ba78bfa84573208223946..77c94c12d500c173e6eb1315b5d6cbdbf96ed574 100644 --- a/tests/features/adms_ap_compliance.feature +++ b/tests/features/adms_ap_compliance.feature @@ -1,4 +1,4 @@ -@api +@api @rdf_sync Feature: Interoperable Europe Portal should be ADMS-AP compliant. Scenario: Validate the entities in the published graph. diff --git a/tests/src/Context/RdfContext.php b/tests/src/Context/RdfContext.php index c2402a2c4504948ee4a7a9f551668adfb75b7f3b..f3aedf0b4e7969103ad5157de27d942500e811af 100644 --- a/tests/src/Context/RdfContext.php +++ b/tests/src/Context/RdfContext.php @@ -6,6 +6,7 @@ use Behat\Gherkin\Node\TableNode; use Drupal\DrupalExtension\Context\RawDrupalContext; +use Drupal\rdf_sync\Model\SyncMethod; use PHPUnit\Framework\Assert; use PHPUnit\Framework\ExpectationFailedException; use function PHPUnit\Framework\assertCount; @@ -235,6 +236,26 @@ public function assertValidPublishedGraph(): void { Assert::assertTrue($result->isSuccessful(), 'The published graph is not ADMS-AP compliant.'); } + /** + * Re-synchronizes terms. + * + * Used in Digit QA pipeline. The terms are installed and synchronized in + * clean-install job but are not preserved between jobs. Tests requiring RDF + * synchronized terms, should be tagged with @rdf_sync. + * + * @BeforeScenario @rdf_sync&&@api + */ + public function reSynchronizeTerms(): void { + $info = \Drupal::getContainer()->get('entity_type.bundle.info')->getBundleInfo('taxonomy_term'); + $vids = array_filter($info, fn(array $bundle): bool => isset($bundle['rdf_sync'])); + $tids = \Drupal::entityQuery('taxonomy_term')->accessCheck(FALSE) + ->condition('vid', array_keys($vids), 'IN') + ->execute(); + /** @var \Drupal\taxonomy\TermInterface[] $terms */ + $terms = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadMultiple($tids); + \Drupal::getContainer()->get('rdf_sync.synchronizer')->synchronize(SyncMethod::UPDATE, $terms); + } + /** * Updates an entity, given its RDF resource (URI). * diff --git a/web/modules/custom/joinup_rdf/joinup_rdf.deploy.php b/web/modules/custom/joinup_rdf/joinup_rdf.deploy.php index fac869963552d1a3540070856fb806493261d26e..4bd39e9335b5512658e35ea04882282dcbf2fb52 100644 --- a/web/modules/custom/joinup_rdf/joinup_rdf.deploy.php +++ b/web/modules/custom/joinup_rdf/joinup_rdf.deploy.php @@ -6,3 +6,11 @@ */ declare(strict_types=1); + +/** + * Remove http://adms-definition RDF graph. + */ +function joinup_rdf_deploy_200100(): void { + \Drupal::getContainer()->get('rdf_sync.connection') + ->update('CLEAR GRAPH <http://adms-definition>;'); +}