-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reg: added example-content and tweaked OAIValidityTest
test expects the example content to be deployed
- Loading branch information
Showing
8 changed files
with
206 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Identify> | ||
<repositoryName>Example Repository</repositoryName> | ||
<baseURL>https://www.example.net/reg/oai</baseURL> | ||
<protocolVersion>2.0</protocolVersion> | ||
<adminEmail>support@example.net</adminEmail> | ||
<earliestDatestamp>2000-01-01T00:00:00Z</earliestDatestamp> | ||
<deletedRecord>persistent</deletedRecord> | ||
<granularity>YYYY-MM-DDThh:mm:ssZ</granularity> | ||
<description> | ||
<ri:Resource created="2020-01-02T03:04:05Z" status="active" updated="2020-01-02T03:04:05Z" | ||
xmlns:ri="http://www.ivoa.net/xml/RegistryInterface/v1.0" | ||
xmlns:vg="http://www.ivoa.net/xml/VORegistry/v1.0" | ||
xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0" | ||
xmlns:vs="http://www.ivoa.net/xml/VODataService/v1.1" | ||
xsi:type="vg:Registry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<title >Example Registry</title> | ||
<shortName>Example Registry</shortName> | ||
<identifier>ivo://example.net/registry</identifier> | ||
<curation xmlns=""> | ||
<publisher>Example Data Provider</publisher> | ||
<contact> | ||
<name>Responsible Person</name> | ||
<address>Center of the Universe</address> | ||
<email>responsible.person@example.net</email> | ||
</contact> | ||
</curation> | ||
<content> | ||
<subject>registry</subject> | ||
<description>Example Registry</description> | ||
<referenceURL>https://www.example.net/reg</referenceURL> | ||
<type>Registry</type> | ||
</content> | ||
<capability standardID="ivo://ivoa.net/std/VOSI#capabilities"> | ||
<interface xsi:type="vs:ParamHTTP" role="std"> | ||
<accessURL use="full">https://www.example.net/reg/capabilities</accessURL> | ||
</interface> | ||
</capability> | ||
<capability standardID="ivo://ivoa.net/std/Registry" xsi:type="vg:Harvest"> | ||
<interface role="std" xsi:type="vg:OAIHTTP"> | ||
<accessURL>https://www.example.net/reg/oai</accessURL> | ||
</interface> | ||
<maxRecords>100</maxRecords> | ||
</capability> | ||
<full>false</full> | ||
<managedAuthority xmlns="">example.net</managedAuthority> | ||
</ri:Resource> | ||
</description> | ||
</Identify> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ListMetadataFormats> | ||
<metadataFormat> | ||
<metadataPrefix>ivo_vor</metadataPrefix> | ||
<schema>http://www.ivoa.net/xml/VOResource/v1.0</schema> | ||
<metadataNamespace>http://www.ivoa.net/xml/VOResource/v1.0</metadataNamespace> | ||
</metadataFormat> | ||
<!-- currently unsupported so not fully OAI compliant | ||
<metadataFormat> | ||
<metadataPrefix>oai_dc</metadataPrefix> | ||
<schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema> | ||
<metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace> | ||
</metadataFormat> | ||
--> | ||
</ListMetadataFormats> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ListSets> | ||
<set> | ||
<setSpec>ivo_managed</setSpec> | ||
<setName>ivo_managed</setName> | ||
</set> | ||
</ListSets> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# example registry content | ||
|
||
This example is for the _authority_ named `example.net`. To expose this content | ||
and run the integration tests, the `reg` service needs to be configured with | ||
``` | ||
org.opencadc.reg.authority = example.net | ||
``` | ||
and the remaining files must be included in `/config/content` of the container. | ||
|
||
## Identify.xml and example.net/registry.xml | ||
These two files describe the registry itself. It's the same VOResource | ||
record inside a different OAI _envelope_. | ||
|
||
## example.net.xml | ||
This file is the authority record. | ||
|
||
## ListMetadataFormats.xml and ListSets.xml | ||
These are static responses to OAI queries and can be used as-is. | ||
|
||
## example.net | ||
This directory contains records for all the resources to be published. In this | ||
example there is only the registry record itself, but other files can be added. | ||
|
||
If resource identifiers (`ivo://{authority}/{name}`) have multiple path components, | ||
those should be reflected in the structure under the _authority_ directory. | ||
|
||
For example, the `ivo://example.net/registry` record is in `example.net/registry.xml` | ||
and the `ivo://example.net/foo/bar` record would be in `example.net/foo/bar.xml`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<GetRecord> | ||
<record> | ||
<header> | ||
<identifier>ivo://example.net</identifier> | ||
<datestamp>2020-01-02T03:04:05Z</datestamp> | ||
<setSpec>ivo_managed</setSpec> | ||
</header> | ||
<metadata> | ||
<ri:Resource created="2020-01-02T03:04:05Z" status="active" | ||
updated="2020-01-02T03:04:05Z" | ||
xmlns:ri="http://www.ivoa.net/xml/RegistryInterface/v1.0" | ||
xmlns:vg="http://www.ivoa.net/xml/VORegistry/v1.0" | ||
xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="vg:Authority" > | ||
<title xmlns="">Example Data Provider</title> | ||
<shortName xmlns="">EG</shortName> | ||
<identifier xmlns="">ivo://example.net</identifier> | ||
<curation xmlns=""> | ||
<publisher>Example Data Provider</publisher> | ||
<contact> | ||
<name>Responsible Person</name> | ||
<address>Center of the Universe</address> | ||
<email>responsible.person@example.net</email> | ||
</contact> | ||
</curation> | ||
<content xmlns=""> | ||
<subject>virtual observatory</subject> | ||
<description>authority for EG</description> | ||
<referenceURL>https://www.example.net/</referenceURL> | ||
<type>Other</type> | ||
<contentLevel>General</contentLevel> | ||
</content> | ||
<managingOrg xmlns="">Example Data Provider</managingOrg> | ||
</ri:Resource> | ||
</metadata> | ||
</record> | ||
</GetRecord> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<GetRecord> | ||
<record> | ||
<header status="deleted"> | ||
<identifier>ivo://example.net/deleted</identifier> | ||
<datestamp>2021-01-02T03:04:05Z</datestamp> | ||
<setSpec>ivo_managed</setSpec> | ||
</header> | ||
</record> | ||
</GetRecord> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<GetRecord> | ||
<record> | ||
<header> | ||
<identifier>ivo://example.net/registry</identifier> | ||
<datestamp>2020-01-02T03:04:05Z</datestamp> | ||
<setSpec>ivo_managed</setSpec> | ||
</header> | ||
<metadata> | ||
<ri:Resource created="2020-01-02T03:04:05Z" status="active" | ||
updated="2020-01-02T03:04:05Z" | ||
xmlns:ri="http://www.ivoa.net/xml/RegistryInterface/v1.0" | ||
xmlns:vg="http://www.ivoa.net/xml/VORegistry/v1.0" | ||
xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0" | ||
xmlns:vs="http://www.ivoa.net/xml/VODataService/v1.1" xsi:type="vg:Registry" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<title>Example Registry</title> | ||
<shortName>Example Registry</shortName> | ||
<identifier>ivo://example.net/registry</identifier> | ||
<curation> | ||
<publisher>Example Data Provider</publisher> | ||
<contact> | ||
<name>Responsible Person</name> | ||
<address>Center of the Universe</address> | ||
<email>responsible.person@example.net</email> | ||
</contact> | ||
</curation> | ||
<content> | ||
<subject>registry</subject> | ||
<description>Example Registry</description> | ||
<referenceURL>https://example.net/reg</referenceURL> | ||
<type>Registry</type> | ||
</content> | ||
<capability standardID="ivo://ivoa.net/std/VOSI#capabilities"> | ||
<interface xsi:type="vs:ParamHTTP" role="std"> | ||
<accessURL use="full">https://example.net/reg/capabilities</accessURL> | ||
</interface> | ||
</capability> | ||
<capability standardID="ivo://ivoa.net/std/Registry" xsi:type="vg:Harvest"> | ||
<interface role="std" xsi:type="vg:OAIHTTP"> | ||
<accessURL>https://example.net/reg/oai</accessURL> | ||
</interface> | ||
<maxRecords>100</maxRecords> | ||
</capability> | ||
<full>false</full> | ||
<managedAuthority>example.net</managedAuthority> | ||
</ri:Resource> | ||
</metadata> | ||
</record> | ||
</GetRecord> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters