diff --git a/.travis.yml b/.travis.yml index 39b85ab..11551f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,10 @@ sudo: false +before_install: +- git clone https://github.com/eurocris/CERIF-TG-Tools.git ../CERIF-TG-Tools +- git clone https://github.com/jdvorak001/openaire-cris-validator.git ../openaire-cris-validator + language: java jdk: @@ -10,5 +14,4 @@ jdk: install: true script: - # this runs two Maven goals: transform and validate - - travis_wait mvn test -B \ No newline at end of file + - travis_wait ./tools/compile.sh diff --git a/conf/openaire-cerif-profile.xml b/conf/openaire-cerif-profile.xml index 12286cc..d8a2a24 100644 --- a/conf/openaire-cerif-profile.xml +++ b/conf/openaire-cerif-profile.xml @@ -1,5 +1,5 @@ - + This is the XML Schema for the OpenAIRE CERIF profile 1.1, a companion artifact of the OpenAIRE Guidelines for CRIS Managers 1.1 (http://openaire-guidelines-for-cris-managers.readthedocs.io/en/latest/index.html). @@ -33,17 +33,17 @@ OpenAIRE compatibility of the CRIS - + URL of the website of the CRIS - + Base URL for the OAI-PMH protocol endpoint of the CRIS - + The URL where the subject classification used by the CRIS can be obtained (using the HTTP GET) @@ -71,6 +71,11 @@ + + + The orgunit identifiers. + + @@ -124,7 +129,7 @@ The flag if Open Access is mandated for this funding - + The Open Access policy that applies to this funding @@ -167,7 +172,7 @@ The event that is covered by this publication (e.g. a report about the event) - + Result outputs that are referenced by this publication @@ -190,7 +195,7 @@ The product identifiers. - + The equipment that generated this product @@ -205,7 +210,7 @@ The event that is covered by this product (e.g. a video or audio interview about the event) - + Result outputs that are referenced by this product @@ -217,18 +222,23 @@ - + The type of the patent (currently just one option) - + + + The patent identifiers. + + + Patents that precede (i.e., have priority over) this patent - + Result outputs that are referenced by this patent diff --git a/docs/cerif_xml_funding_entity.rst b/docs/cerif_xml_funding_entity.rst index ba07011..3c9e33e 100644 --- a/docs/cerif_xml_funding_entity.rst +++ b/docs/cerif_xml_funding_entity.rst @@ -101,7 +101,7 @@ Funder :Description: The funder or funders :Use: optional, possibly multiple (0..*) :Representation: XML element ``Funder`` with embedded XML element ``OrgUnit`` or ``Person``. A ``DisplayName`` may be specified, too. -:CERIF: the OrganisationUnit_Funding linking entity (``_) with the ``_ semantics +:CERIF: the OrganisationUnit_Funding linking entity (``_) with the ``_ semantics PartOf @@ -109,7 +109,7 @@ PartOf :Description: Chain up to the larger funding that encompasses this funding :Use: optional (0..1) :Representation: XML element ``PartOf`` with embedded XML element ``Funding`` -:CERIF: the Funding_Funding linking entity (``_) with the ``_ semantics (direction :1) +:CERIF: the Funding_Funding linking entity (``_) with the ``_ semantics (direction :1) Duration diff --git a/docs/cerif_xml_organisation_entity.rst b/docs/cerif_xml_organisation_entity.rst index 85c8182..7f3c5f6 100644 --- a/docs/cerif_xml_organisation_entity.rst +++ b/docs/cerif_xml_organisation_entity.rst @@ -42,12 +42,91 @@ Name +RORID +^^^^^ +:Description: The ROR identifier in case its value is certain or known to be a preferred one. +:Use: optional (0..1) +:Representation: XML element ``RORID`` +:CERIF: the FederatedIdentifier entity (``_) +:Format: regular expression ``https:\/\/ror\.org\/0[\da-hj-km-np-tv-zA-HJ-KM-NP-TV-Z]{6}\d{2}`` (as per ``_) + + + +AlternativeRORID +^^^^^^^^^^^^^^^^ +:Description: The ROR identifiers in case the value is not certain, e.g. because there is a conflicting statement with a different value. This can also represent deprecated identifiers/profiles that have been merged into a single, current one that is preferred. +:Use: optional, possibly multiple (0..*) +:Representation: XML element ``AlternativeRORID`` +:CERIF: the FederatedIdentifier entity (``_) +:Format: regular expression ``https:\/\/ror\.org\/0[\da-hj-km-np-tv-zA-HJ-KM-NP-TV-Z]{6}\d{2}`` (as per ``_) + + + +GRID +^^^^ +:Description: The GRID identifier in case its value is certain or known to be a preferred one. +:Use: optional (0..1) +:Representation: XML element ``GRID`` +:CERIF: the FederatedIdentifier entity (``_) +:Format: regular expression ``grid\.\d{4,}\.[0-9a-f]{1,2}`` (as per ``_) + + + +AlternativeGRID +^^^^^^^^^^^^^^^ +:Description: The GRID identifier in case the value is not certain, e.g. because there is a conflicting statement with a different value. This can also represent deprecated identifiers/profiles that have been merged into a single, current one that is preferred. +:Use: optional, possibly multiple (0..*) +:Representation: XML element ``AlternativeGRID`` +:CERIF: the FederatedIdentifier entity (``_) +:Format: regular expression ``grid\.\d{4,}\.[0-9a-f]{1,2}`` (as per ``_) + + + +ISNI +^^^^ +:Description: The ISNI identifier in case its value is certain or known to be a preferred one. +:Use: optional (0..1) +:Representation: XML element ``ISNI`` +:CERIF: the FederatedIdentifier entity (``_) +:Format: regular expression ``\d{4} \d{4} \d{4} \d{3}[\dX]`` (as per ``_) + + + +AlternativeISNI +^^^^^^^^^^^^^^^ +:Description: The ISNI identifier in case the value is not certain, e.g. because there is a conflicting statement with a different value. This can also represent deprecated identifiers/profiles that have been merged into a single, current one that is preferred. +:Use: optional, possibly multiple (0..*) +:Representation: XML element ``AlternativeISNI`` +:CERIF: the FederatedIdentifier entity (``_) +:Format: regular expression ``\d{4} \d{4} \d{4} \d{3}[\dX]`` (as per ``_) + + + +FundRefID +^^^^^^^^^ +:Description: The FundRef Registry Identifier in case its value is certain or known to be a preferred one. +:Use: optional (0..1) +:Representation: XML element ``FundRefID`` +:CERIF: the FederatedIdentifier entity (``_) +:Format: regular expression ``https:\/\/doi.org\/10\.13039\/\d+`` (as per ``_ ``_) + + + +AlternativeFundRefID +^^^^^^^^^^^^^^^^^^^^ +:Description: The FundRef Registry Identifier in case the value is not certain, e.g. because there is a conflicting statement with a different value. This can also represent deprecated identifiers/profiles that have been merged into a single, current one that is preferred. +:Use: optional, possibly multiple (0..*) +:Representation: XML element ``AlternativeFundRefID`` +:CERIF: the FederatedIdentifier entity (``_) +:Format: regular expression ``https:\/\/doi.org\/10\.13039\/\d+`` (as per ``_ ``_) + + + Identifier ^^^^^^^^^^ -:Description: An identifier of the organisation unit +:Description: A generic identifier, to be used only if your identifier does not fit in any of the above specific identifier types. :Use: optional, possibly multiple (0..*) -:Representation: XML element ``Identifier`` with mandatory ``type`` attribute -:CERIF: the FederatedIdentifier entity (``_) +:Representation: XML element ``Identifier`` diff --git a/docs/cerif_xml_patent_entity.rst b/docs/cerif_xml_patent_entity.rst index ad625d3..2b0ea84 100644 --- a/docs/cerif_xml_patent_entity.rst +++ b/docs/cerif_xml_patent_entity.rst @@ -155,7 +155,7 @@ OriginatesFrom ^^^^^^^^^^^^^^ :Use: optional, possibly multiple (0..*) :Representation: XML element ``OriginatesFrom`` with embedded XML element ``Project`` or ``Funding`` -:CERIF: the Project_ResultPatent linking entity (``_) with the ``_ semantics; the ResultPatent_Funding linking entity (``_) with the ``_ semantics +:CERIF: the Project_ResultPatent linking entity (``_) with the ``_ semantics; the ResultPatent_Funding linking entity (``_) with the ``_ semantics Predecessor @@ -163,7 +163,7 @@ Predecessor :Description: Patents that precede (i.e., have priority over) this patent :Use: optional, possibly multiple (0..*) :Representation: XML element ``Predecessor`` with embedded XML element ``Patent`` -:CERIF: the ResultPatent_ResultPatent linking entity (``_) with the ``_ semantics (direction :1) +:CERIF: the ResultPatent_ResultPatent linking entity (``_) with the ``_ semantics (direction :1) References diff --git a/docs/cerif_xml_person_entity.rst b/docs/cerif_xml_person_entity.rst index 10c140f..37b63c9 100644 --- a/docs/cerif_xml_person_entity.rst +++ b/docs/cerif_xml_person_entity.rst @@ -57,8 +57,8 @@ Gender :CERIF: the Person.Gender attribute (``_) :Vocabulary: Genders (sociocultural, not linguistic) - * **Masculine** (``m``): Man - * **Feminine** (``f``): Woman + * **Masculine** (``m``): + * **Feminine** (``f``): @@ -128,7 +128,7 @@ ISNI :Use: optional (0..1) :Representation: XML element ``ISNI`` :CERIF: the FederatedIdentifier entity (``_) -:Format: regular expression ``[0-9]{4} [0-9]{4} [0-9]{4} [0-9]{3}[0-9X]`` (as per ``_) +:Format: regular expression ``\d{4} \d{4} \d{4} \d{3}[\dX]`` (as per ``_) @@ -138,7 +138,7 @@ AlternativeISNI :Use: optional, possibly multiple (0..*) :Representation: XML element ``AlternativeISNI`` :CERIF: the FederatedIdentifier entity (``_) -:Format: regular expression ``[0-9]{4} [0-9]{4} [0-9]{4} [0-9]{3}[0-9X]`` (as per ``_) +:Format: regular expression ``\d{4} \d{4} \d{4} \d{3}[\dX]`` (as per ``_) diff --git a/docs/cerif_xml_product_entity.rst b/docs/cerif_xml_product_entity.rst index a28a2e8..8a84edb 100644 --- a/docs/cerif_xml_product_entity.rst +++ b/docs/cerif_xml_product_entity.rst @@ -51,7 +51,7 @@ Language :Description: The language or languages of the product, if applicable. Please use the IETF language tags as described in the IETF BCP 47 document. :Use: optional, possibly multiple (0..*) :Representation: XML element ``Language`` -:CERIF: the ResultProduct_Classification linking entity (``_) with the ``_ semantics +:CERIF: the ResultProduct_Classification linking entity (``_) with the ``_ semantics Name @@ -187,7 +187,7 @@ OriginatesFrom ^^^^^^^^^^^^^^ :Use: optional, possibly multiple (0..*) :Representation: XML element ``OriginatesFrom`` with embedded XML element ``Project`` or ``Funding`` -:CERIF: the Project_ResultProduct linking entity (``_) with the ``_ semantics; the ResultProduct_Funding linking entity (``_) with the ``_ semantics +:CERIF: the Project_ResultProduct linking entity (``_) with the ``_ semantics; the ResultProduct_Funding linking entity (``_) with the ``_ semantics GeneratedBy @@ -195,7 +195,7 @@ GeneratedBy :Description: The equipment that generated this product :Use: optional, possibly multiple (0..*) :Representation: XML element ``GeneratedBy`` with embedded XML element ``Equipment`` -:CERIF: the ResultProduct_Equipment linking entity (``_) with the ``_ semantics +:CERIF: the ResultProduct_Equipment linking entity (``_) with the ``_ semantics PresentedAt diff --git a/docs/cerif_xml_publication_entity.rst b/docs/cerif_xml_publication_entity.rst index f202037..7431076 100644 --- a/docs/cerif_xml_publication_entity.rst +++ b/docs/cerif_xml_publication_entity.rst @@ -86,7 +86,7 @@ Language :Description: The language of the publication. Please use the IETF language tags as described in the IETF BCP 47 document. :Use: optional (0..1) :Representation: XML element ``Language`` -:CERIF: the ResultPublication_Classification linking entity (``_) with the ``_ semantics +:CERIF: the ResultPublication_Classification linking entity (``_) with the ``_ semantics Title @@ -413,7 +413,7 @@ OriginatesFrom ^^^^^^^^^^^^^^ :Use: optional, possibly multiple (0..*) :Representation: XML element ``OriginatesFrom`` with embedded XML element ``Project`` or ``Funding`` -:CERIF: the Project_ResultPublication linking entity (``_) with the ``_ semantics; the ResultPublication_Funding linking entity (``_) with the ``_ semantics +:CERIF: the Project_ResultPublication linking entity (``_) with the ``_ semantics; the ResultPublication_Funding linking entity (``_) with the ``_ semantics PresentedAt diff --git a/samples/openaire_cerif_xml_example_fundings.xml b/samples/openaire_cerif_xml_example_fundings.xml index e31c398..cb05d3e 100644 --- a/samples/openaire_cerif_xml_example_fundings.xml +++ b/samples/openaire_cerif_xml_example_fundings.xml @@ -30,7 +30,7 @@ EC European Commission - http://dx.doi.org/10.13039/501100000780 + https://doi.org/10.13039/501100000780 @@ -57,7 +57,7 @@ EC European Commission - http://dx.doi.org/10.13039/501100000780 + https://doi.org/10.13039/501100000780 diff --git a/samples/openaire_cerif_xml_example_orgunits.xml b/samples/openaire_cerif_xml_example_orgunits.xml index 97657f1..3f128ad 100644 --- a/samples/openaire_cerif_xml_example_orgunits.xml +++ b/samples/openaire_cerif_xml_example_orgunits.xml @@ -20,7 +20,7 @@ NKUA ΕΘΝΙΚΟ ΚΑΙ ΚΑΠΟΔΙΣΤΡΙΑΚΟ ΠΑΝΕΠΙΣΤΗΜΙΟ ΑΘΗΝΩΝ NATIONAL AND KAPODISTRIAN UNIVERSITY OF ATHENS - http://www.uoa.gr + http://www.uoa.gr @@ -36,7 +36,7 @@ CNR CONSIGLIO NAZIONALE DELLE RICERCHE NATIONAL RESEARCH COUNCIL - http://www.cnr.it + http://www.cnr.it @@ -51,7 +51,7 @@ EKT National Documentation Centre Εθνικό Κέντρο Τεκμηρίωσης - http://www.ekt.gr + http://www.ekt.gr @@ -65,7 +65,7 @@ UKOLN UKOLN - http://www.ukoln.ac.uk + http://www.ukoln.ac.uk @@ -102,8 +102,8 @@ Euroopan komissio Europeiska kommissionen Europska komisija - http://dx.doi.org/10.13039/501100000780 - https://europa.eu/ + https://doi.org/10.13039/501100000780 + https://europa.eu/ diff --git a/samples/openaire_cerif_xml_example_patents.xml b/samples/openaire_cerif_xml_example_patents.xml index 34533da..023d5b7 100644 --- a/samples/openaire_cerif_xml_example_patents.xml +++ b/samples/openaire_cerif_xml_example_patents.xml @@ -94,7 +94,7 @@ openaire_cris_patents - + http://purl.org/coar/resource_type/c_15cd MEDICAL DEVICE, IN PARTICULAR FOR THE SEPARATION OF A FLUID diff --git a/samples/openaire_cerif_xml_example_projects.xml b/samples/openaire_cerif_xml_example_projects.xml index 2fdff2c..d23abd9 100644 --- a/samples/openaire_cerif_xml_example_projects.xml +++ b/samples/openaire_cerif_xml_example_projects.xml @@ -15,7 +15,7 @@ openaire_cris_projects - + OpenAIREplus 2nd-Generation Open Access Infrastructure for Research in Europe 283595 @@ -43,7 +43,7 @@ EC European Commission - http://dx.doi.org/10.13039/501100000780 + https://doi.org/10.13039/501100000780 @@ -127,7 +127,7 @@ EC European Commission - http://dx.doi.org/10.13039/501100000780 + https://doi.org/10.13039/501100000780 @@ -194,7 +194,7 @@ CNR CONSIGLIO NAZIONALE DELLE RICERCHE NATIONAL RESEARCH COUNCIL - http://www.cnr.it + http://www.cnr.it @@ -203,7 +203,7 @@ EC European Commission - http://dx.doi.org/10.13039/501100000780 + https://doi.org/10.13039/501100000780 diff --git a/samples/openaire_cerif_xml_example_publications.xml b/samples/openaire_cerif_xml_example_publications.xml index c8ef907..8dada63 100644 --- a/samples/openaire_cerif_xml_example_publications.xml +++ b/samples/openaire_cerif_xml_example_publications.xml @@ -130,7 +130,7 @@ EC European Commission - http://dx.doi.org/10.13039/501100000780 + https://doi.org/10.13039/501100000780 @@ -152,10 +152,12 @@ openaire_cris_publications - + http://purl.org/coar/resource_type/c_0640 The International Journal of Digital Curation + IJDC 1746-8256 + 2266735-0 http://purl.org/coar/access_right/c_14cb @@ -168,7 +170,7 @@ openaire_cris_publications - + http://purl.org/coar/resource_type/c_3e5a The International Journal of Digital Curation: Special Issue on Open Access Repositories @@ -201,8 +203,8 @@ EC European Commission - http://dx.doi.org/10.13039/501100000780 - + https://doi.org/10.13039/501100000780 + @@ -220,7 +222,7 @@ openaire_cris_publications - + http://purl.org/coar/resource_type/c_5794 en The Data Model of the OpenAIRE Scientific Communication e-Infrastructure @@ -338,7 +340,7 @@ EC European Commission - http://dx.doi.org/10.13039/501100000780 + https://doi.org/10.13039/501100000780 diff --git a/samples/openaire_oaipmh_example_Identify.xml b/samples/openaire_oaipmh_example_Identify.xml index f2db3c7..ba5f7e4 100644 --- a/samples/openaire_oaipmh_example_Identify.xml +++ b/samples/openaire_oaipmh_example_Identify.xml @@ -28,7 +28,7 @@ - + https://www.openaire.eu/cerif-profile/vocab/OpenAIRE_Service_Compatibility#1.1 cris.example.org The example CRIS diff --git a/schemas/includes/cerif-base-identifiers.xsd b/schemas/includes/cerif-base-identifiers.xsd index cd5f949..d2e51eb 100644 --- a/schemas/includes/cerif-base-identifiers.xsd +++ b/schemas/includes/cerif-base-identifiers.xsd @@ -98,5 +98,26 @@ + + + + The XML Schema type for the ISNI identifier + + + The ISNI identifier + The identifiers assigned to persons, legal entities and other named objects. See http://www.isni.org/ for more details. + + + + + + + + + + + + + \ No newline at end of file diff --git a/schemas/includes/orgunit-identifiers.xsd b/schemas/includes/orgunit-identifiers.xsd new file mode 100644 index 0000000..07e039d --- /dev/null +++ b/schemas/includes/orgunit-identifiers.xsd @@ -0,0 +1,193 @@ + + + + This is the XML Schema component for the OpenAIRE CERIF profile 1.1 which specifies the admissible organisation units identifiers. + For further description please see the main schema file. + This work is licensed under a Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/). + + + + + + The basic types of identifiers for use with schemas. + + + + + + The common building blocks for any CERIF XML Schema. + + + + + + + + + The ROR identifier in case its value is certain or known to be a preferred one. + + + + + The ROR identifiers in case the value is not certain, e.g. because there is a conflicting statement with a different value. This can also represent deprecated identifiers/profiles that have been merged into a single, current one that is preferred. + + + + + + The GRID identifier in case its value is certain or known to be a preferred one. + + + + + The GRID identifier in case the value is not certain, e.g. because there is a conflicting statement with a different value. This can also represent deprecated identifiers/profiles that have been merged into a single, current one that is preferred. + + + + + + The ISNI identifier in case its value is certain or known to be a preferred one. + + + + + The ISNI identifier in case the value is not certain, e.g. because there is a conflicting statement with a different value. This can also represent deprecated identifiers/profiles that have been merged into a single, current one that is preferred. + + + + + + The FundRef Registry Identifier in case its value is certain or known to be a preferred one. + + + + + The FundRef Registry Identifier in case the value is not certain, e.g. because there is a conflicting statement with a different value. This can also represent deprecated identifiers/profiles that have been merged into a single, current one that is preferred. + + + + + + + + + A generic identifier, to be used only if your identifier does not fit in any of the above specific identifier types. + + + + + + + + + The XML Schema type for the ROR identifier + + + The ROR identifier + The service of registering research organizations and assigning identifiers to them. See https://ror.org/about for more details. + + + + + + + + + + + + + + + + + The XML Schema type for the GRID identifier + + + The GRID identifier + The service of registering research organizations and assigning identifiers to them. See https://www.grid.ac/ for more details. + + + + + + + + + + + + + + + + + The XML Schema type for the FundRef Registry Identifier + + + The FundRef Registry Identifier + The service of registering funders and assigning identifiers to them. See https://www.crossref.org/services/funder-registry/ for more details. + + + + + + + + + + + + + + + + + + diff --git a/schemas/includes/person-identifiers.xsd b/schemas/includes/person-identifiers.xsd index 2d3dea6..e2d2a8d 100644 --- a/schemas/includes/person-identifiers.xsd +++ b/schemas/includes/person-identifiers.xsd @@ -8,6 +8,12 @@ + + + The basic types of identifiers for use with schemas. + + + The common building blocks for any CERIF XML Schema. @@ -156,27 +162,6 @@ - - - The XML Schema type for the ISNI identifier - - - The ISNI identifier - The identifiers assigned to persons, legal entities and other named objects. See http://www.isni.org/ for more details. - - - - - - - - - - - - - - The XML Schema type for the Digital Author Identifier diff --git a/schemas/openaire-cerif-profile.xsd b/schemas/openaire-cerif-profile.xsd index 2eb1b6d..6befa8d 100644 --- a/schemas/openaire-cerif-profile.xsd +++ b/schemas/openaire-cerif-profile.xsd @@ -35,6 +35,12 @@ The person identifiers. + + + + +The orgunit identifiers. + @@ -43,17 +49,17 @@ - + -The product identifiers. +The patent identifiers. - - - The patent identifiers. - - + + +The product identifiers. + + @@ -118,7 +124,7 @@ One Person typically has many of these relationships. Genders (sociocultural, not linguistic) - + Genders (sociocultural, not linguistic) @@ -128,9 +134,8 @@ One Person typically has many of these relationships. Masculine - - Masculine - Man + + Male @@ -139,9 +144,8 @@ One Person typically has many of these relationships. Feminine - - Feminine - Woman + + Female @@ -219,11 +223,7 @@ In the research information domain Organisation Units typically represents: - - - An identifier of the organisation unit - - + @@ -564,13 +564,13 @@ The Project entity only captures details of the project scope and plan. Informat - + The funder or funders - + Chain up to the larger funding that encompasses this funding @@ -605,7 +605,7 @@ The Project entity only captures details of the project scope and plan. Informat The flag if Open Access is mandated for this funding - + The Open Access policy that applies to this funding @@ -662,7 +662,7 @@ This entity typically represents the granularity level of a single published ite - + The language of the publication. Please use the IETF language tags as described in the IETF BCP 47 document. @@ -821,7 +821,7 @@ This entity typically represents the granularity level of a single published ite - + @@ -993,7 +993,7 @@ Source: Wikipedia - + @@ -1005,7 +1005,7 @@ Source: Wikipedia - + Patents that precede (i.e., have priority over) this patent @@ -1068,7 +1068,7 @@ This includes: - + The language or languages of the product, if applicable. Please use the IETF language tags as described in the IETF BCP 47 document. @@ -1141,7 +1141,7 @@ This includes: - + @@ -1153,7 +1153,7 @@ This includes: - + The equipment that generated this product diff --git a/schemas/scripts/xsd2cerif-rst.xsl b/schemas/scripts/xsd2cerif-rst.xsl index 59be91d..b29850f 100644 --- a/schemas/scripts/xsd2cerif-rst.xsl +++ b/schemas/scripts/xsd2cerif-rst.xsl @@ -201,19 +201,24 @@ Internal Identifier - - - - `< - - >`_ - - - `` - - `` - - + + + + + + + + `< + + >`_ + + + `` + + `` + + + diff --git a/tools/compile.sh b/tools/compile.sh new file mode 100755 index 0000000..878a292 --- /dev/null +++ b/tools/compile.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +echo '================================================================================' +echo '* Compiling the CERIF-Model-Tools *' +echo '================================================================================' +( cd ../CERIF-TG-Tools/CERIF-Model-Tools/ && mvn package ) + +echo +echo '================================================================================' +echo '* Running the CERIF-Model-Tools *' +echo '================================================================================' +java -jar ../CERIF-TG-Tools/CERIF-Model-Tools/target/cerif-model-tools-*.jar -d conf/openaire-cerif-profile.xml -o schemas/openaire-cerif-profile.xsd + +echo +echo '================================================================================' +echo '* Validating files and producing documentation sources *' +echo '================================================================================' + +# extract the current version from the POM file +V=$( xpath /dev/null | \ + sed -ne '//s/<\/*version>//gp' ) + +# place the current version in the documentation config file +echo >docs/conf.sed "/^release/c\\ +release = '$V'" && \ +sed -f docs/conf.sed docs/conf.py >docs/conf1.py && \ +mv docs/conf1.py docs/conf.py || \ +exit 1 + +# run the maven script +mvn -B clean package || \ +exit 2 + +echo +echo '================================================================================' +echo '* Running the Prototype OpenAIRE Validator *' +echo '================================================================================' +( cd ../openaire-cris-validator/ && mvn clean package )