Skip to content

Commit

Permalink
openaire#60 add URL identifier to patent
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent REMY committed Jan 16, 2020
1 parent b983eac commit 363452a
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 2 deletions.
64 changes: 64 additions & 0 deletions schemas/includes/patent-identifiers.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cf="urn:xmlns:org.eurocris.cerif" xmlns:cflink="https://w3id.org/cerif/annotations#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" attributeFormDefault="unqualified" elementFormDefault="qualified" xml:lang="en"
xsi:schemaLocation="http://www.w3.org/2001/XMLSchema https://www.w3.org/2001/XMLSchema.xsd">
<xs:annotation>
<xs:documentation>This is the XML Schema component for the OpenAIRE CERIF profile 1.1 which specifies the admissible patent 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/).
</xs:documentation>
</xs:annotation>

<xs:include schemaLocation="../includes/cerif-base-identifiers.xsd">
<xs:annotation>
<xs:documentation>The basic types of identifiers for use with schemas.</xs:documentation>
</xs:annotation>
</xs:include>

<xs:include schemaLocation="../includes/cerif-commons.xsd">
<xs:annotation>
<xs:documentation>The common building blocks for any CERIF XML Schema.</xs:documentation>
</xs:annotation>
</xs:include>

<xs:group name="PatentIdentifiers__Group">
<xs:sequence>

<xs:element cflink:identifier="true" cflink:link="https://w3id.org/cerif/vocab/IdentifierTypes#URL" minOccurs="0" name="URL" type="cfString__Type"/>

<!-- A skeleton for contributing new identifier types
## ideally please submit a GitHub pull request with branch called 'add-XXX'
## but we will welcome your contribution no matter how you choose to communicate it to us
<xs:element cflink:identifier="true" minOccurs="0" name="XXX">
<xs:annotation>
<xs:documentation xml:lang="en">The XXX identifier</xs:documentation>
<xs:appinfo>
## @id: please generate a fresh Version 4 UUID (e.g. through the 'uuidgen | tr A-F a-f' linux or macOS commands or online at https://www.uuidgenerator.net/version4)
<cf:Service id="">
## please keep the cf:Name equal to the beginning of the xs:documentation above, per @xml:lang
<cf:Name xml:lang="en">The XXX identifier</cf:Name>
## please provide a short description of the scope of the identifier service and supply a pointer to a webpage with more details
<cf:Description xml:lang="en">The service of registering YYY and assigning identifiers to them. See ZZZ for more details.</cf:Description>
</cf:Service>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:restriction base="cfString__Type">
## @value: please supply a regular expression the values shall match
<xs:pattern value="">
<xs:annotation>
## and document where you got it from
<xs:documentation source=""/>
</xs:annotation>
</xs:pattern>
## or at least specify (in @value) the maximum length of the admissible values of the identifier
<xs:maxLength value=""/>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
</xs:element>
-->
</xs:sequence>
</xs:group>

</xs:schema>
10 changes: 8 additions & 2 deletions schemas/openaire-cerif-profile.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,18 @@
</xs:annotation>
</xs:include>

<xs:include schemaLocation="includes/product-identifiers.xsd">
<xs:include schemaLocation="includes/product-identifiers.xsd">
<xs:annotation>
<xs:documentation>The product identifiers.</xs:documentation>
</xs:annotation>
</xs:include>

<xs:include schemaLocation="includes/patent-identifiers.xsd">
<xs:annotation>
<xs:documentation>The patent identifiers.</xs:documentation>
</xs:annotation>
</xs:include>

<xs:import namespace="http://purl.org/coar/access_right" schemaLocation="vocabularies/coar_accessrights.xsd"/>

<xs:include schemaLocation="./includes/cerif-commons.xsd">
Expand Down Expand Up @@ -939,7 +945,7 @@ Source: Wikipedia

<xs:element cflink:attribute="https://w3id.org/cerif/model#ResultPatent.PatentNumber" minOccurs="0" name="PatentNumber" type="cfString__Type"/>


<xs:group ref="PatentIdentifiers__Group"/>

<xs:element cflink:container="ordered" minOccurs="0" name="Inventors">
<xs:annotation>
Expand Down

0 comments on commit 363452a

Please sign in to comment.