Skip to content

Commit

Permalink
Merge branch 'main' into guillemets
Browse files Browse the repository at this point in the history
  • Loading branch information
jechterhoff authored Apr 9, 2024
2 parents 0d08cfa + a51747a commit c8a2db3
Show file tree
Hide file tree
Showing 32 changed files with 1,210 additions and 2,414 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@
Best Practise for OGC - UML to JSON Encoding Rules

The current state of the document is found in [document.html](<https://geonovum.github.io/uml2json/document.html>)

## Generating the document

First, metanorma needs to be installed. The general entry point for the documentation on how to install metanorma is located at https://www.metanorma.org/install/.

Thus far, we have tested on Windows. The docker based installation was not successful, thus the installation instructions at https://www.metanorma.org/install/windows/ were used. The following commands can then be used:

* Command to generate the document (execute in the directory that contains file document.adoc): `metanorma compile --agree-to-terms -t ogc -x xml,html document.adoc`
* Command to upgrade the installation (execute as administrator): `choco upgrade metanorma -y`
* Command to identify the installed metanorma version (e.g. when reporting bugs in the metanorma GitHub repository): `metanorma --version`
3 changes: 3 additions & 0 deletions XML-19115-3/19115-4 data example D1 test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"key": "val"
}
134 changes: 134 additions & 0 deletions XML-19115-3/D.1Minimal.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Minimal gmd based instance document -->
<mdb:MD_Metadata
xmlns:gco="https://schemas.isotc211.org/19103/-/gco/1.2"
xmlns:gcx="https://schemas.isotc211.org/19103/-/gcx/1.2"
xmlns:cit="https://schemas.isotc211.org/19115/-1/cit/1.3"
xmlns:gex="https://schemas.isotc211.org/19115/-1/gex/1.3"
xmlns:lan="https://schemas.isotc211.org/19115/-1/lan/1.3"
xmlns:mcc="https://schemas.isotc211.org/19115/-1/mcc/1.3"
xmlns:mdb="https://schemas.isotc211.org/19115/-1/mdb/1.3"
xmlns:mrd="https://schemas.isotc211.org/19115/-1/mrd/1.3"
xmlns:mri="https://schemas.isotc211.org/19115/-1/mri/1.3"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
https://schemas.isotc211.org/19103/-/gco/1.2 https://schemas.isotc211.org/19103/-/gco/1.2.0/gco.xsd
https://schemas.isotc211.org/19103/-/gcx/1.2 https://schemas.isotc211.org/19103/-/gcx/1.2.0/gcx.xsd
https://schemas.isotc211.org/19115/-1/cit/1.3 https://schemas.isotc211.org/19115/-1/cit/1.3.0/cit.xsd
https://schemas.isotc211.org/19115/-1/gex/1.3 https://schemas.isotc211.org/19115/-1/gex/1.3.0/gex.xsd
https://schemas.isotc211.org/19115/-1/lan/1.3 https://schemas.isotc211.org/19115/-1/lan/1.3.0/lan.xsd
https://schemas.isotc211.org/19115/-1/mcc/1.3 https://schemas.isotc211.org/19115/-1/mcc/1.3.0/mcc.xsd
https://schemas.isotc211.org/19115/-1/mdb/1.3 https://schemas.isotc211.org/19115/-1/mdb/1.3.0/mdb.xsd
https://schemas.isotc211.org/19115/-1/mri/1.3 https://schemas.isotc211.org/19115/-1/mri/1.3.0/mri.xsd
">
<mdb:contact>
<cit:CI_Responsibility>
<cit:role>
<cit:CI_RoleCode codeList="https://schemas.isotc211.org/Resources/codelists.xml#ISO19115.cit.CI_RoleCode" codeListValue="custodian">custodian</cit:CI_RoleCode>
</cit:role>
<cit:party>
<cit:CI_Organisation>
<!-- name or logo is mandatory by schematron-enforced constraint -->
<cit:name>
<gco:CharacterString>Department of Primary Industries and Resources SA</gco:CharacterString>
</cit:name>
</cit:CI_Organisation>
</cit:party>
</cit:CI_Responsibility>
</mdb:contact>
<mdb:dateInfo>
<cit:CI_Date>
<cit:date>
<gco:DateTime>2004-03-12T12:00:00</gco:DateTime>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="https://schemas.isotc211.org/Resources/codelists.xml#ISO19115.cit.CI_DateTypeCode" codeListValue="creation">creator</cit:CI_DateTypeCode>
</cit:dateType>
</cit:CI_Date>
</mdb:dateInfo>
<mdb:identificationInfo>
<mri:MD_DataIdentification>
<mri:citation>
<cit:CI_Citation>
<cit:title>
<gco:CharacterString>Exploration Licences for Minerals</gco:CharacterString>
</cit:title>

<!-- mandatory (dataType= creation) by constraint enforced by schematron rule -->
<cit:date>
<cit:CI_Date>
<cit:date>
<gco:DateTime>1993-01-01T12:00:00</gco:DateTime>
</cit:date>
<cit:dateType>
<cit:CI_DateTypeCode codeList="https://schemas.isotc211.org/Resources/codelists.xml#ISO19115.cit.CI_DateTypeCode" codeListValue="publication">publication</cit:CI_DateTypeCode>
</cit:dateType>
</cit:CI_Date>
</cit:date>
</cit:CI_Citation>
</mri:citation>
<mri:abstract>
<gco:CharacterString>Location of all current mineral Exploration Licences issued under the Mining Act, 1971. Exploration Licences provide exclusive tenure rights to explore for mineral resources for up to a maximum of 5 years. Comment issought on applications for Exploration Licences from numerous sources before granting. Exploration programs are subject to strict environmental and heritage conditions. Exploitation of identified resources must be made under separate mineral production leases.</gco:CharacterString>
</mri:abstract>

<!-- mandatory since MD_MetadataScope is not specified, and defaults to 'dataset' enforced by schematron rule -->
<mri:topicCategory>
<mri:MD_TopicCategoryCode>boundaries</mri:MD_TopicCategoryCode>
</mri:topicCategory>

<!-- a bounding box is required because the mdb:MD_MetadataScope is not specified (ie the resource is a dataset [default]); enforced by schematron rule-->
<mri:extent>
<gex:EX_Extent>
<gex:description>
<gco:CharacterString>location description</gco:CharacterString>
</gex:description>
<gex:geographicElement>
<gex:EX_GeographicBoundingBox>
<gex:westBoundLongitude>
<gco:Decimal>129.0</gco:Decimal>
</gex:westBoundLongitude>
<gex:eastBoundLongitude>
<gco:Decimal>141.0</gco:Decimal>
</gex:eastBoundLongitude>
<gex:southBoundLatitude>
<gco:Decimal>-38.5</gco:Decimal>
</gex:southBoundLatitude>
<gex:northBoundLatitude>
<gco:Decimal>-26.0</gco:Decimal>
</gex:northBoundLatitude>
</gex:EX_GeographicBoundingBox>
</gex:geographicElement>
</gex:EX_Extent>
</mri:extent>
<!-- alternative is to use the geographic description (commented out) below -->
<!--
<mri:extent>
<gex:EX_Extent>
<gex:geographicElement>
<gex:EX_GeographicDescription>
<gex:geographicIdentifier>
<mcc:MD_Identifier>
<mcc:code><gco:CharacterString>South Australia</gco:CharacterString></mcc:code>
</mcc:MD_Identifier>
</gex:geographicIdentifier>
</gex:EX_GeographicDescription>
</gex:geographicElement>
</gex:EX_Extent>
</mri:extent>
-->
<!-- mandatory if resource contains textual content (has to be enforced by inspection) -->
<mri:defaultLocale>
<lan:PT_Locale>
<lan:language>
<lan:LanguageCode codeList="https://schemas.isotc211.org/Resources/codelists.xml#ISO19115.lan.LanguageCode" codeListValue="eng">English</lan:LanguageCode>
</lan:language>
<lan:characterEncoding>
<lan:MD_CharacterSetCode codeList="https://schemas.isotc211.org/Resources/codelists.xml#ISO19115.lan.CharacterSetCode" codeListValue="utf8">UTF-8</lan:MD_CharacterSetCode>
</lan:characterEncoding>
</lan:PT_Locale>
</mri:defaultLocale>
</mri:MD_DataIdentification>
</mdb:identificationInfo>
</mdb:MD_Metadata>
Loading

0 comments on commit c8a2db3

Please sign in to comment.