-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix XML data import structure - has options
- Loading branch information
1 parent
14add61
commit e595e7d
Showing
8 changed files
with
3,845 additions
and
54 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
academic_observatory_workflows/database/schema/pubmed_xsd_schemas/mathml-in-pubmed.mod.xsd
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,63 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- ============================================================= --> | ||
<!-- MATHML 3.0 MODULES --> | ||
<!-- ============================================================= --> | ||
<!-- MATHML 3.0 QUALIFIED NAMES --> | ||
<!-- MATHML 3.0 DTD --> | ||
<!-- MATHML 3.0 EXTRA ENTITIES --> | ||
<!-- MATHML 3.0 ALIASES --> | ||
<!-- NAMED CHARACTERS --> | ||
<!-- ============================================================= --> | ||
<!-- SET UP "mml" AS THE MATH PREFIX --> | ||
<!-- ============================================================= --> | ||
<!-- MAKE MATH PREFIX PARAMETER ENTITY HAPPEN --> | ||
<!-- MAKE PREFIX EQUAL "mml" --> | ||
<!-- SET UP "pfx" --> | ||
<!-- USE "pfx" TO SET THE MATH ELEMENT NAME --> | ||
<!-- ============================================================= --> | ||
<!-- CALL THE MATHML ENTITIES --> | ||
<!-- ============================================================= --> | ||
<!-- MATHML CHARACTER ENTITIES --> | ||
<!-- | ||
Set the "INCLUDE" or "IGNORE" marked section | ||
switch for the MATHML 3.0 DTD. This switch | ||
determines whether the math processing in | ||
the -%mathml.dtd; module or the | ||
-%xmlspecchars.ent; module in this DTD Suite | ||
will invoke the sets of special characters | ||
that are defined AND INVOKED in the | ||
-%xmlspecchars.ent; module. | ||
A value of "IGNORE" turns off the second | ||
invocation from the MathML DTD. | ||
--> | ||
<!-- MATHML-SPECIFIC CHARACTER ENTITIES --> | ||
<!-- | ||
Because the MATHML invocation is canceled | ||
using the parameter entity just defined, | ||
the two external entities below must be | ||
invoked from here, as neither XMLspecchars | ||
nor the MathML DTD will invoke them. | ||
--> | ||
<!-- New characters defined by MathML --> | ||
<!-- MathML aliases for characters defined above --> | ||
<!-- NAMED CHARACTERS --> | ||
<!-- ============================================================= --> | ||
<!-- RESTRICT CONTENT OF ANNOTATION --> | ||
<!-- ============================================================= --> | ||
<!-- MATHML ANNOTATION MODEL --> | ||
<!-- | ||
The MathML 3.0 DTD establishes the content of | ||
the <mml:annotation-xml> element as any MathML | ||
expression. This is unnecessarily broad, | ||
causing inconvenience during conversion. | ||
The model has been restricted to | ||
one or more paragraphs. | ||
--> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:xlink="##xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML"> | ||
<xs:import namespace="##xlink" schemaLocation="xlink.xsd"/> | ||
<xs:import namespace="http://www.w3.org/1998/Math/MathML" schemaLocation="mathml3.xsd"/> | ||
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/> | ||
<!-- ============================================================= --> | ||
<!-- MathML 3.0 INVOCATION --> | ||
<!-- ============================================================= --> | ||
</xs:schema> |
55 changes: 55 additions & 0 deletions
55
academic_observatory_workflows/database/schema/pubmed_xsd_schemas/mathml3-qname1.mod.xsd
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,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- ....................................................................... --> | ||
<!-- MathML Qualified Names Module ........................................ --> | ||
<!-- | ||
file: mathml3-qname-1.mod | ||
This is the Mathematical Markup Language (MathML) 2.0, an XML | ||
application for describing mathematical notation and capturing | ||
both its structure and content. | ||
Copyright 1998-2010 W3C (MIT, INRIA, Keio), All Rights Reserved. | ||
This DTD module is identified by the PUBLIC and SYSTEM identifiers: | ||
PUBLIC "-//W3C//ENTITIES MathML 3.0 Qualified Names 1.0//EN" | ||
SYSTEM "mathml3-qname.mod" | ||
Revisions: | ||
(none) | ||
....................................................................... | ||
--> | ||
<!-- | ||
MathML Qualified Names | ||
This module is contained in two parts, labeled Section 'A' and 'B': | ||
Section A declares parameter entities to support namespace- | ||
qualified names, namespace declarations, and name prefixing | ||
for MathML. | ||
Section B declares parameter entities used to provide | ||
namespace-qualified names for all MathML element types. | ||
This module is derived from the XHTML Qualified Names Template module. | ||
--> | ||
<!-- Section A: XHTML XML Namespace Framework :::::::::::::::::::: --> | ||
<!-- XLink ............... --> | ||
<!-- W3C XML Schema ............... --> | ||
<!-- MathML .............. --> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/1998/Math/MathML" xmlns:xlink="##xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML"> | ||
<xs:import schemaLocation="pubmed_230101.xsd"/> | ||
<xs:import namespace="##xlink" schemaLocation="xlink.xsd"/> | ||
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/> | ||
</xs:schema> | ||
<!-- | ||
ignores subsequent instantiation of this module when | ||
used as external subset rather than module fragment. | ||
NOTE: Do not modify this parameter entity, otherwise | ||
a recursive parsing situation may result. | ||
--> | ||
<!-- Section B: MathML Qualified Names ::::::::::::::::::::::::::::: --> | ||
<!-- | ||
9. This section declares parameter entities used to provide | ||
namespace-qualified names for all MathML element types. | ||
--> |
Oops, something went wrong.