openphar 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/openphar/harmonized_type_registry.rb +46 -0
- data/lib/openphar/migrators/jp/classifier.rb +49 -0
- data/lib/openphar/migrators/jp.rb +11 -0
- data/lib/openphar/migrators/ph_int/classifier.rb +74 -0
- data/lib/openphar/migrators/ph_int.rb +11 -0
- data/lib/openphar/migrators.rb +2 -0
- data/lib/openphar/models/ahp/formulation.rb +29 -0
- data/lib/openphar/models/ahp/herbal_monograph.rb +43 -0
- data/lib/openphar/models/ahp/monograph.rb +31 -0
- data/lib/openphar/models/ahp.rb +3 -16
- data/lib/openphar/models/api/bhasma.rb +44 -0
- data/lib/openphar/models/api/dravya.rb +62 -0
- data/lib/openphar/models/api/formulation.rb +31 -0
- data/lib/openphar/models/api/monograph.rb +35 -0
- data/lib/openphar/models/api.rb +4 -20
- data/lib/openphar/models/hkcmms/monograph.rb +28 -0
- data/lib/openphar/models/hkcmms/tcm_crude_drug.rb +43 -0
- data/lib/openphar/models/hkcmms/tcm_formulation.rb +31 -0
- data/lib/openphar/models/hkcmms.rb +4 -18
- data/lib/openphar/models/jp/amino_acid.rb +17 -0
- data/lib/openphar/models/jp/biological.rb +17 -0
- data/lib/openphar/models/jp/chemical_drug.rb +17 -0
- data/lib/openphar/models/jp/crude_drug.rb +34 -0
- data/lib/openphar/models/jp/excipient.rb +19 -0
- data/lib/openphar/models/jp/formulation.rb +17 -0
- data/lib/openphar/models/jp/mineral.rb +17 -0
- data/lib/openphar/models/jp/monograph.rb +58 -0
- data/lib/openphar/models/jp/powdered_crude_drug.rb +28 -0
- data/lib/openphar/models/jp/vitamin.rb +17 -0
- data/lib/openphar/models/jp.rb +11 -12
- data/lib/openphar/models/monograph.rb +28 -0
- data/lib/openphar/models/thp/cannabis_monograph.rb +39 -0
- data/lib/openphar/models/thp/herbal_monograph.rb +33 -0
- data/lib/openphar/models/thp/monograph.rb +28 -0
- data/lib/openphar/models/thp.rb +3 -15
- data/lib/openphar/publisher_registry.rb +93 -0
- data/lib/openphar/version.rb +1 -1
- data/lib/openphar.rb +2 -0
- data/ontology/context/ahp.jsonld +20 -0
- data/ontology/context/api.jsonld +20 -0
- data/ontology/context/hkcmms.jsonld +20 -0
- data/ontology/context/jp.jsonld +20 -0
- data/ontology/context/thp.jsonld +20 -0
- data/ontology/publisher/ahp/extensions.ttl +30 -0
- data/ontology/publisher/api/extensions.ttl +38 -0
- data/ontology/publisher/hkcmms/extensions.ttl +31 -0
- data/ontology/publisher/jp/extensions.ttl +40 -0
- data/ontology/publisher/thp/extensions.ttl +28 -0
- data/shapes/ahp/monograph.ttl +28 -0
- data/shapes/api/monograph.ttl +28 -0
- data/shapes/hkcmms/monograph.ttl +28 -0
- data/shapes/jp/monograph.ttl +28 -0
- data/shapes/phint/monograph.ttl +15 -0
- data/shapes/thp/monograph.ttl +28 -0
- metadata +46 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"@version": 1.1,
|
|
4
|
+
"@base": "https://www.openphar.org/data/jp/",
|
|
5
|
+
"@vocab": "https://www.openphar.org/ontology/publisher/jp/",
|
|
6
|
+
"jp": "https://www.openphar.org/ontology/publisher/jp/",
|
|
7
|
+
"op": "https://www.openphar.org/ontology/core/",
|
|
8
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
9
|
+
"dct": "http://purl.org/dc/terms/",
|
|
10
|
+
"skos": "http://www.w3.org/2004/02/skos/core#",
|
|
11
|
+
"id": "@id",
|
|
12
|
+
"type": "@type",
|
|
13
|
+
"title": "dct:title",
|
|
14
|
+
"prefLabel": "skos:prefLabel",
|
|
15
|
+
"publisher": "dct:publisher",
|
|
16
|
+
"monographId": { "@id": "op:monographId", "@type": "xsd:string" },
|
|
17
|
+
"belongsToEdition": { "@id": "op:belongsToEdition", "@type": "@id" },
|
|
18
|
+
"sameSubstanceAs": { "@id": "op:sameSubstanceAs", "@type": "@id", "@container": "@set" }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"@version": 1.1,
|
|
4
|
+
"@base": "https://www.openphar.org/data/thp/",
|
|
5
|
+
"@vocab": "https://www.openphar.org/ontology/publisher/thp/",
|
|
6
|
+
"thp": "https://www.openphar.org/ontology/publisher/thp/",
|
|
7
|
+
"op": "https://www.openphar.org/ontology/core/",
|
|
8
|
+
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
|
9
|
+
"dct": "http://purl.org/dc/terms/",
|
|
10
|
+
"skos": "http://www.w3.org/2004/02/skos/core#",
|
|
11
|
+
"id": "@id",
|
|
12
|
+
"type": "@type",
|
|
13
|
+
"title": "dct:title",
|
|
14
|
+
"prefLabel": "skos:prefLabel",
|
|
15
|
+
"publisher": "dct:publisher",
|
|
16
|
+
"monographId": { "@id": "op:monographId", "@type": "xsd:string" },
|
|
17
|
+
"belongsToEdition": { "@id": "op:belongsToEdition", "@type": "@id" },
|
|
18
|
+
"sameSubstanceAs": { "@id": "op:sameSubstanceAs", "@type": "@id", "@container": "@set" }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Open Pharmacopoeia - American Herbal Pharmacopoeia (AHP) Extensions
|
|
2
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
5
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
6
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
7
|
+
@prefix ahp: <https://www.openphar.org/ontology/publisher/ahp/> .
|
|
8
|
+
|
|
9
|
+
<https://www.openphar.org/ontology/publisher/ahp/>
|
|
10
|
+
a owl:Ontology ;
|
|
11
|
+
rdfs:label "American Herbal Pharmacopoeia Extensions"@en ;
|
|
12
|
+
owl:imports <https://www.openphar.org/ontology/core/> .
|
|
13
|
+
|
|
14
|
+
<https://www.openphar.org/data/publisher/ahp>
|
|
15
|
+
a op:Publisher ;
|
|
16
|
+
op:publisherCode "AHP" ;
|
|
17
|
+
rdfs:label "American Herbal Pharmacopoeia"@en ;
|
|
18
|
+
rdfs:seeAlso <https://www.herbal-ahp.org/> .
|
|
19
|
+
|
|
20
|
+
ahp:Monograph a owl:Class ; rdfs:subClassOf op:Monograph .
|
|
21
|
+
ahp:HerbalMonograph a owl:Class ; rdfs:subClassOf ahp:Monograph, op:CrudeDrugMonograph .
|
|
22
|
+
ahp:Formulation a owl:Class ; rdfs:subClassOf ahp:Monograph, op:FormulationMonograph .
|
|
23
|
+
|
|
24
|
+
ahp:commonName a owl:DatatypeProperty ; rdfs:domain ahp:Monograph ; rdfs:range xsd:string .
|
|
25
|
+
ahp:latinName a owl:DatatypeProperty ; rdfs:domain ahp:Monograph ; rdfs:range xsd:string .
|
|
26
|
+
ahp:partsUsed a owl:DatatypeProperty ; rdfs:domain ahp:HerbalMonograph ; rdfs:range xsd:string .
|
|
27
|
+
ahp:therapeuticAction a owl:DatatypeProperty ; rdfs:domain ahp:HerbalMonograph ; rdfs:range xsd:string .
|
|
28
|
+
ahp:safetyRating a owl:DatatypeProperty ; rdfs:domain ahp:HerbalMonograph ; rdfs:range xsd:string .
|
|
29
|
+
ahp:contraindication a owl:DatatypeProperty ; rdfs:domain ahp:HerbalMonograph ; rdfs:range xsd:string .
|
|
30
|
+
ahp:drugInteraction a owl:DatatypeProperty ; rdfs:domain ahp:HerbalMonograph ; rdfs:range xsd:string .
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Open Pharmacopoeia - Ayurvedic Pharmacopoeia of India (API) Extensions
|
|
2
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
5
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
6
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
7
|
+
@prefix api: <https://www.openphar.org/ontology/publisher/api/> .
|
|
8
|
+
|
|
9
|
+
<https://www.openphar.org/ontology/publisher/api/>
|
|
10
|
+
a owl:Ontology ;
|
|
11
|
+
rdfs:label "Ayurvedic Pharmacopoeia of India Extensions"@en ;
|
|
12
|
+
owl:imports <https://www.openphar.org/ontology/core/> .
|
|
13
|
+
|
|
14
|
+
<https://www.openphar.org/data/publisher/api>
|
|
15
|
+
a op:Publisher ;
|
|
16
|
+
op:publisherCode "API" ;
|
|
17
|
+
rdfs:label "Ayurvedic Pharmacopoeia of India"@en ;
|
|
18
|
+
rdfs:seeAlso <https://main.ayush.gov.in/> .
|
|
19
|
+
|
|
20
|
+
api:Monograph a owl:Class ; rdfs:subClassOf op:Monograph .
|
|
21
|
+
api:Dravya a owl:Class ; rdfs:subClassOf api:Monograph, op:CrudeDrugMonograph .
|
|
22
|
+
api:Formulation a owl:Class ; rdfs:subClassOf api:Monograph, op:FormulationMonograph .
|
|
23
|
+
api:Bhasma a owl:Class ; rdfs:subClassOf api:Monograph, op:MineralSubstanceMonograph .
|
|
24
|
+
|
|
25
|
+
# Ayurvedic Panchakarma properties
|
|
26
|
+
api:rasa a owl:DatatypeProperty ; rdfs:domain api:Monograph ; rdfs:range xsd:string .
|
|
27
|
+
api:guna a owl:DatatypeProperty ; rdfs:domain api:Monograph ; rdfs:range xsd:string .
|
|
28
|
+
api:virya a owl:DatatypeProperty ; rdfs:domain api:Monograph ; rdfs:range xsd:string .
|
|
29
|
+
api:vipaka a owl:DatatypeProperty ; rdfs:domain api:Monograph ; rdfs:range xsd:string .
|
|
30
|
+
api:karma a owl:DatatypeProperty ; rdfs:domain api:Monograph ; rdfs:range xsd:string .
|
|
31
|
+
|
|
32
|
+
api:sanskritName a owl:DatatypeProperty ; rdfs:domain api:Monograph ; rdfs:range xsd:string .
|
|
33
|
+
api:plantPart a owl:DatatypeProperty ; rdfs:domain api:Dravya ; rdfs:range xsd:string .
|
|
34
|
+
api:constituent a owl:DatatypeProperty ; rdfs:domain api:Dravya ; rdfs:range xsd:string .
|
|
35
|
+
api:dose a owl:DatatypeProperty ; rdfs:domain api:Monograph ; rdfs:range xsd:string .
|
|
36
|
+
|
|
37
|
+
api:sourceMineral a owl:DatatypeProperty ; rdfs:domain api:Bhasma ; rdfs:range xsd:string .
|
|
38
|
+
api:preparationMethod a owl:DatatypeProperty ; rdfs:domain api:Formulation ; rdfs:range xsd:string .
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Open Pharmacopoeia - Hong Kong Chinese Materia Medica Standards (HKCMMS) Extensions
|
|
2
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
5
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
6
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
7
|
+
@prefix hkcmms: <https://www.openphar.org/ontology/publisher/hkcmms/> .
|
|
8
|
+
|
|
9
|
+
<https://www.openphar.org/ontology/publisher/hkcmms/>
|
|
10
|
+
a owl:Ontology ;
|
|
11
|
+
rdfs:label "Hong Kong Chinese Materia Medica Standards Extensions"@en ;
|
|
12
|
+
owl:imports <https://www.openphar.org/ontology/core/> .
|
|
13
|
+
|
|
14
|
+
<https://www.openphar.org/data/publisher/hkcmms>
|
|
15
|
+
a op:Publisher ;
|
|
16
|
+
op:publisherCode "HKCMMS" ;
|
|
17
|
+
rdfs:label "Hong Kong Chinese Materia Medica Standards"@en ;
|
|
18
|
+
rdfs:seeAlso <https://www.cmchk.org.hk/> .
|
|
19
|
+
|
|
20
|
+
hkcmms:Monograph a owl:Class ; rdfs:subClassOf op:Monograph .
|
|
21
|
+
hkcmms:TcmCrudeDrug a owl:Class ; rdfs:subClassOf hkcmms:Monograph, op:CrudeDrugMonograph .
|
|
22
|
+
hkcmms:TcmFormulation a owl:Class ; rdfs:subClassOf hkcmms:Monograph, op:FormulationMonograph .
|
|
23
|
+
|
|
24
|
+
# TCM pharmacological properties (四气五味归经)
|
|
25
|
+
hkcmms:chineseName a owl:DatatypeProperty ; rdfs:domain hkcmms:Monograph ; rdfs:range xsd:string .
|
|
26
|
+
hkcmms:pinyinName a owl:DatatypeProperty ; rdfs:domain hkcmms:Monograph ; rdfs:range xsd:string .
|
|
27
|
+
hkcmms:nature a owl:DatatypeProperty ; rdfs:domain hkcmms:TcmCrudeDrug ; rdfs:range xsd:string .
|
|
28
|
+
hkcmms:flavor a owl:DatatypeProperty ; rdfs:domain hkcmms:TcmCrudeDrug ; rdfs:range xsd:string .
|
|
29
|
+
hkcmms:meridianTropism a owl:DatatypeProperty ; rdfs:domain hkcmms:TcmCrudeDrug ; rdfs:range xsd:string .
|
|
30
|
+
hkcmms:function a owl:DatatypeProperty ; rdfs:domain hkcmms:TcmCrudeDrug ; rdfs:range xsd:string .
|
|
31
|
+
hkcmms:indication a owl:DatatypeProperty ; rdfs:domain hkcmms:TcmCrudeDrug ; rdfs:range xsd:string .
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Open Pharmacopoeia - Japanese Pharmacopoeia (JP) Extensions
|
|
2
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
5
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
6
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
7
|
+
@prefix jp: <https://www.openphar.org/ontology/publisher/jp/> .
|
|
8
|
+
|
|
9
|
+
<https://www.openphar.org/ontology/publisher/jp/>
|
|
10
|
+
a owl:Ontology ;
|
|
11
|
+
rdfs:label "Japanese Pharmacopoeia Extensions"@en ;
|
|
12
|
+
owl:imports <https://www.openphar.org/ontology/core/> .
|
|
13
|
+
|
|
14
|
+
<https://www.openphar.org/data/publisher/jp>
|
|
15
|
+
a op:Publisher ;
|
|
16
|
+
op:publisherCode "JP" ;
|
|
17
|
+
rdfs:label "Japanese Pharmacopoeia"@en ;
|
|
18
|
+
rdfs:seeAlso <https://www.mhlw.go.jp/topics/bukyoku/iyaku/yakkyoku/> .
|
|
19
|
+
|
|
20
|
+
jp:Monograph a owl:Class ; rdfs:subClassOf op:Monograph .
|
|
21
|
+
jp:CrudeDrug a owl:Class ; rdfs:subClassOf jp:Monograph, op:CrudeDrugMonograph .
|
|
22
|
+
jp:PowderedCrudeDrug a owl:Class ; rdfs:subClassOf jp:CrudeDrug .
|
|
23
|
+
jp:ChemicalDrug a owl:Class ; rdfs:subClassOf jp:Monograph, op:ChemicalDrugMonograph .
|
|
24
|
+
jp:Formulation a owl:Class ; rdfs:subClassOf jp:Monograph, op:FormulationMonograph .
|
|
25
|
+
jp:Biological a owl:Class ; rdfs:subClassOf jp:Monograph, op:BiologicalSubstanceMonograph .
|
|
26
|
+
jp:Excipient a owl:Class ; rdfs:subClassOf jp:Monograph .
|
|
27
|
+
jp:Vitamin a owl:Class ; rdfs:subClassOf jp:Monograph, op:VitaminMonograph .
|
|
28
|
+
jp:AminoAcid a owl:Class ; rdfs:subClassOf jp:Monograph, op:AminoAcidMonograph .
|
|
29
|
+
jp:Mineral a owl:Class ; rdfs:subClassOf jp:Monograph, op:MineralSubstanceMonograph .
|
|
30
|
+
|
|
31
|
+
jp:japaneseName a owl:DatatypeProperty ; rdfs:domain jp:Monograph ; rdfs:range xsd:string .
|
|
32
|
+
jp:englishName a owl:DatatypeProperty ; rdfs:domain jp:Monograph ; rdfs:range xsd:string .
|
|
33
|
+
jp:category a owl:DatatypeProperty ; rdfs:domain jp:Monograph ; rdfs:range xsd:string .
|
|
34
|
+
jp:botanicalSource a owl:ObjectProperty ; rdfs:domain jp:CrudeDrug .
|
|
35
|
+
|
|
36
|
+
<https://www.openphar.org/data/edition/jp18>
|
|
37
|
+
a op:Edition ;
|
|
38
|
+
op:publisherCode "JP" ;
|
|
39
|
+
op:editionNumber "18" ;
|
|
40
|
+
rdfs:label "Japanese Pharmacopoeia 18th edition"@en .
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Open Pharmacopoeia - Thai Herbal Pharmacopoeia (THP) Extensions
|
|
2
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
5
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
6
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
7
|
+
@prefix thp: <https://www.openphar.org/ontology/publisher/thp/> .
|
|
8
|
+
|
|
9
|
+
<https://www.openphar.org/ontology/publisher/thp/>
|
|
10
|
+
a owl:Ontology ;
|
|
11
|
+
rdfs:label "Thai Herbal Pharmacopoeia Extensions"@en ;
|
|
12
|
+
owl:imports <https://www.openphar.org/ontology/core/> .
|
|
13
|
+
|
|
14
|
+
<https://www.openphar.org/data/publisher/thp>
|
|
15
|
+
a op:Publisher ;
|
|
16
|
+
op:publisherCode "THP" ;
|
|
17
|
+
rdfs:label "Thai Herbal Pharmacopoeia"@en ;
|
|
18
|
+
rdfs:seeAlso <http://www.fda.moph.go.th/> .
|
|
19
|
+
|
|
20
|
+
thp:Monograph a owl:Class ; rdfs:subClassOf op:Monograph .
|
|
21
|
+
thp:HerbalMonograph a owl:Class ; rdfs:subClassOf thp:Monograph, op:CrudeDrugMonograph .
|
|
22
|
+
thp:CannabisMonograph a owl:Class ; rdfs:subClassOf thp:Monograph, op:CrudeDrugMonograph .
|
|
23
|
+
|
|
24
|
+
thp:thaiName a owl:DatatypeProperty ; rdfs:domain thp:Monograph ; rdfs:range xsd:string .
|
|
25
|
+
thp:plantPart a owl:DatatypeProperty ; rdfs:domain thp:HerbalMonograph ; rdfs:range xsd:string .
|
|
26
|
+
thp:thcContent a owl:DatatypeProperty ; rdfs:domain thp:CannabisMonograph ; rdfs:range xsd:string .
|
|
27
|
+
thp:cbdContent a owl:DatatypeProperty ; rdfs:domain thp:CannabisMonograph ; rdfs:range xsd:string .
|
|
28
|
+
thp:cultivar a owl:DatatypeProperty ; rdfs:domain thp:CannabisMonograph ; rdfs:range xsd:string .
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SHACL shapes for AHP monographs.
|
|
2
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
5
|
+
@prefix dct: <http://purl.org/dc/terms/> .
|
|
6
|
+
@prefix ahp: <https://www.openphar.org/ontology/publisher/ahp/> .
|
|
7
|
+
|
|
8
|
+
ahp:MonographShape
|
|
9
|
+
a sh:NodeShape ;
|
|
10
|
+
sh:targetClass ahp:Monograph ;
|
|
11
|
+
sh:property [
|
|
12
|
+
sh:path op:monographId ;
|
|
13
|
+
sh:datatype xsd:string ;
|
|
14
|
+
sh:minCount 1 ;
|
|
15
|
+
sh:severity sh:Violation ;
|
|
16
|
+
sh:message "AHP monograph must have a monographId."@en ;
|
|
17
|
+
] ;
|
|
18
|
+
sh:property [
|
|
19
|
+
sh:path dct:title ;
|
|
20
|
+
sh:datatype xsd:string ;
|
|
21
|
+
sh:minCount 1 ;
|
|
22
|
+
sh:severity sh:Violation ;
|
|
23
|
+
] ;
|
|
24
|
+
sh:property [
|
|
25
|
+
sh:path op:publisher ;
|
|
26
|
+
sh:hasValue "AHP" ;
|
|
27
|
+
sh:severity sh:Violation ;
|
|
28
|
+
] .
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SHACL shapes for API monographs.
|
|
2
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
5
|
+
@prefix dct: <http://purl.org/dc/terms/> .
|
|
6
|
+
@prefix api: <https://www.openphar.org/ontology/publisher/api/> .
|
|
7
|
+
|
|
8
|
+
api:MonographShape
|
|
9
|
+
a sh:NodeShape ;
|
|
10
|
+
sh:targetClass api:Monograph ;
|
|
11
|
+
sh:property [
|
|
12
|
+
sh:path op:monographId ;
|
|
13
|
+
sh:datatype xsd:string ;
|
|
14
|
+
sh:minCount 1 ;
|
|
15
|
+
sh:severity sh:Violation ;
|
|
16
|
+
sh:message "API monograph must have a monographId."@en ;
|
|
17
|
+
] ;
|
|
18
|
+
sh:property [
|
|
19
|
+
sh:path dct:title ;
|
|
20
|
+
sh:datatype xsd:string ;
|
|
21
|
+
sh:minCount 1 ;
|
|
22
|
+
sh:severity sh:Violation ;
|
|
23
|
+
] ;
|
|
24
|
+
sh:property [
|
|
25
|
+
sh:path op:publisher ;
|
|
26
|
+
sh:hasValue "API" ;
|
|
27
|
+
sh:severity sh:Violation ;
|
|
28
|
+
] .
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SHACL shapes for HKCMMS monographs.
|
|
2
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
5
|
+
@prefix dct: <http://purl.org/dc/terms/> .
|
|
6
|
+
@prefix hkcmms: <https://www.openphar.org/ontology/publisher/hkcmms/> .
|
|
7
|
+
|
|
8
|
+
hkcmms:MonographShape
|
|
9
|
+
a sh:NodeShape ;
|
|
10
|
+
sh:targetClass hkcmms:Monograph ;
|
|
11
|
+
sh:property [
|
|
12
|
+
sh:path op:monographId ;
|
|
13
|
+
sh:datatype xsd:string ;
|
|
14
|
+
sh:minCount 1 ;
|
|
15
|
+
sh:severity sh:Violation ;
|
|
16
|
+
sh:message "HKCMMS monograph must have a monographId."@en ;
|
|
17
|
+
] ;
|
|
18
|
+
sh:property [
|
|
19
|
+
sh:path dct:title ;
|
|
20
|
+
sh:datatype xsd:string ;
|
|
21
|
+
sh:minCount 1 ;
|
|
22
|
+
sh:severity sh:Violation ;
|
|
23
|
+
] ;
|
|
24
|
+
sh:property [
|
|
25
|
+
sh:path op:publisher ;
|
|
26
|
+
sh:hasValue "HKCMMS" ;
|
|
27
|
+
sh:severity sh:Violation ;
|
|
28
|
+
] .
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SHACL shapes for JP monographs.
|
|
2
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
5
|
+
@prefix dct: <http://purl.org/dc/terms/> .
|
|
6
|
+
@prefix jp: <https://www.openphar.org/ontology/publisher/jp/> .
|
|
7
|
+
|
|
8
|
+
jp:MonographShape
|
|
9
|
+
a sh:NodeShape ;
|
|
10
|
+
sh:targetClass jp:Monograph ;
|
|
11
|
+
sh:property [
|
|
12
|
+
sh:path op:monographId ;
|
|
13
|
+
sh:datatype xsd:string ;
|
|
14
|
+
sh:minCount 1 ;
|
|
15
|
+
sh:severity sh:Violation ;
|
|
16
|
+
sh:message "JP monograph must have a monographId."@en ;
|
|
17
|
+
] ;
|
|
18
|
+
sh:property [
|
|
19
|
+
sh:path dct:title ;
|
|
20
|
+
sh:datatype xsd:string ;
|
|
21
|
+
sh:minCount 1 ;
|
|
22
|
+
sh:severity sh:Violation ;
|
|
23
|
+
] ;
|
|
24
|
+
sh:property [
|
|
25
|
+
sh:path op:publisher ;
|
|
26
|
+
sh:hasValue "JP" ;
|
|
27
|
+
sh:severity sh:Violation ;
|
|
28
|
+
] .
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# SHACL shapes for Ph.Int. monographs.
|
|
2
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
5
|
+
@prefix phint: <https://www.openphar.org/ontology/publisher/phint/> .
|
|
6
|
+
|
|
7
|
+
phint:MonographShape
|
|
8
|
+
a sh:NodeShape ;
|
|
9
|
+
sh:targetClass phint:PharmaceuticalSubstance ;
|
|
10
|
+
sh:property [
|
|
11
|
+
sh:path op:monographId ;
|
|
12
|
+
sh:datatype xsd:string ;
|
|
13
|
+
sh:minCount 1 ;
|
|
14
|
+
sh:severity sh:Violation ;
|
|
15
|
+
] .
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SHACL shapes for THP monographs.
|
|
2
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix op: <https://www.openphar.org/ontology/core/> .
|
|
5
|
+
@prefix dct: <http://purl.org/dc/terms/> .
|
|
6
|
+
@prefix thp: <https://www.openphar.org/ontology/publisher/thp/> .
|
|
7
|
+
|
|
8
|
+
thp:MonographShape
|
|
9
|
+
a sh:NodeShape ;
|
|
10
|
+
sh:targetClass thp:Monograph ;
|
|
11
|
+
sh:property [
|
|
12
|
+
sh:path op:monographId ;
|
|
13
|
+
sh:datatype xsd:string ;
|
|
14
|
+
sh:minCount 1 ;
|
|
15
|
+
sh:severity sh:Violation ;
|
|
16
|
+
sh:message "THP monograph must have a monographId."@en ;
|
|
17
|
+
] ;
|
|
18
|
+
sh:property [
|
|
19
|
+
sh:path dct:title ;
|
|
20
|
+
sh:datatype xsd:string ;
|
|
21
|
+
sh:minCount 1 ;
|
|
22
|
+
sh:severity sh:Violation ;
|
|
23
|
+
] ;
|
|
24
|
+
sh:property [
|
|
25
|
+
sh:path op:publisher ;
|
|
26
|
+
sh:hasValue "THP" ;
|
|
27
|
+
sh:severity sh:Violation ;
|
|
28
|
+
] .
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openphar
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SIPM
|
|
@@ -208,6 +208,7 @@ files:
|
|
|
208
208
|
- lib/openphar/exporters/neo4j/property_mapper.rb
|
|
209
209
|
- lib/openphar/exporters/neo4j/relationship_builder.rb
|
|
210
210
|
- lib/openphar/exporters/neo4j_exporter.rb
|
|
211
|
+
- lib/openphar/harmonized_type_registry.rb
|
|
211
212
|
- lib/openphar/linkers.rb
|
|
212
213
|
- lib/openphar/linkers/chp.rb
|
|
213
214
|
- lib/openphar/linkers/chp/cross_edition_linker.rb
|
|
@@ -217,12 +218,23 @@ files:
|
|
|
217
218
|
- lib/openphar/migrators/chp.rb
|
|
218
219
|
- lib/openphar/migrators/chp/classifier.rb
|
|
219
220
|
- lib/openphar/migrators/chp_migrator.rb
|
|
221
|
+
- lib/openphar/migrators/jp.rb
|
|
222
|
+
- lib/openphar/migrators/jp/classifier.rb
|
|
220
223
|
- lib/openphar/migrators/jp_migrator.rb
|
|
224
|
+
- lib/openphar/migrators/ph_int.rb
|
|
225
|
+
- lib/openphar/migrators/ph_int/classifier.rb
|
|
221
226
|
- lib/openphar/migrators/phint_migrator.rb
|
|
222
227
|
- lib/openphar/models.rb
|
|
223
228
|
- lib/openphar/models/ahp.rb
|
|
229
|
+
- lib/openphar/models/ahp/formulation.rb
|
|
230
|
+
- lib/openphar/models/ahp/herbal_monograph.rb
|
|
231
|
+
- lib/openphar/models/ahp/monograph.rb
|
|
224
232
|
- lib/openphar/models/amino_acid_monograph.rb
|
|
225
233
|
- lib/openphar/models/api.rb
|
|
234
|
+
- lib/openphar/models/api/bhasma.rb
|
|
235
|
+
- lib/openphar/models/api/dravya.rb
|
|
236
|
+
- lib/openphar/models/api/formulation.rb
|
|
237
|
+
- lib/openphar/models/api/monograph.rb
|
|
226
238
|
- lib/openphar/models/assay_specification.rb
|
|
227
239
|
- lib/openphar/models/base_entity.rb
|
|
228
240
|
- lib/openphar/models/biological_substance_monograph.rb
|
|
@@ -241,9 +253,22 @@ files:
|
|
|
241
253
|
- lib/openphar/models/edition.rb
|
|
242
254
|
- lib/openphar/models/formulation_monograph.rb
|
|
243
255
|
- lib/openphar/models/hkcmms.rb
|
|
256
|
+
- lib/openphar/models/hkcmms/monograph.rb
|
|
257
|
+
- lib/openphar/models/hkcmms/tcm_crude_drug.rb
|
|
258
|
+
- lib/openphar/models/hkcmms/tcm_formulation.rb
|
|
244
259
|
- lib/openphar/models/identification_specification.rb
|
|
245
260
|
- lib/openphar/models/jp.rb
|
|
261
|
+
- lib/openphar/models/jp/amino_acid.rb
|
|
262
|
+
- lib/openphar/models/jp/biological.rb
|
|
263
|
+
- lib/openphar/models/jp/chemical_drug.rb
|
|
264
|
+
- lib/openphar/models/jp/crude_drug.rb
|
|
265
|
+
- lib/openphar/models/jp/excipient.rb
|
|
266
|
+
- lib/openphar/models/jp/formulation.rb
|
|
246
267
|
- lib/openphar/models/jp/kampo_formula.rb
|
|
268
|
+
- lib/openphar/models/jp/mineral.rb
|
|
269
|
+
- lib/openphar/models/jp/monograph.rb
|
|
270
|
+
- lib/openphar/models/jp/powdered_crude_drug.rb
|
|
271
|
+
- lib/openphar/models/jp/vitamin.rb
|
|
247
272
|
- lib/openphar/models/limit.rb
|
|
248
273
|
- lib/openphar/models/mineral_substance_monograph.rb
|
|
249
274
|
- lib/openphar/models/monograph.rb
|
|
@@ -262,6 +287,9 @@ files:
|
|
|
262
287
|
- lib/openphar/models/supplement.rb
|
|
263
288
|
- lib/openphar/models/test_specification.rb
|
|
264
289
|
- lib/openphar/models/thp.rb
|
|
290
|
+
- lib/openphar/models/thp/cannabis_monograph.rb
|
|
291
|
+
- lib/openphar/models/thp/herbal_monograph.rb
|
|
292
|
+
- lib/openphar/models/thp/monograph.rb
|
|
265
293
|
- lib/openphar/models/vitamin_monograph.rb
|
|
266
294
|
- lib/openphar/monograph_merger.rb
|
|
267
295
|
- lib/openphar/parsers.rb
|
|
@@ -270,6 +298,7 @@ files:
|
|
|
270
298
|
- lib/openphar/parsers/jp_html_parser_base.rb
|
|
271
299
|
- lib/openphar/parsers/jp_ja_html_parser.rb
|
|
272
300
|
- lib/openphar/parsers/phint_json_parser.rb
|
|
301
|
+
- lib/openphar/publisher_registry.rb
|
|
273
302
|
- lib/openphar/registry.rb
|
|
274
303
|
- lib/openphar/registry/publisher_registry.rb
|
|
275
304
|
- lib/openphar/registry/type_registry.rb
|
|
@@ -279,19 +308,35 @@ files:
|
|
|
279
308
|
- lib/openphar/transformers/jsonld_transformer.rb
|
|
280
309
|
- lib/openphar/version.rb
|
|
281
310
|
- ontology/bibliographic/edition.ttl
|
|
311
|
+
- ontology/context/ahp.jsonld
|
|
312
|
+
- ontology/context/api.jsonld
|
|
282
313
|
- ontology/context/chp.jsonld
|
|
283
314
|
- ontology/context/crude-drugs.jsonld
|
|
315
|
+
- ontology/context/hkcmms.jsonld
|
|
316
|
+
- ontology/context/jp.jsonld
|
|
284
317
|
- ontology/context/pharmacopoeia.jsonld
|
|
318
|
+
- ontology/context/thp.jsonld
|
|
285
319
|
- ontology/core/identification.ttl
|
|
286
320
|
- ontology/core/pharmacopoeia.ttl
|
|
287
321
|
- ontology/core/substance-form.ttl
|
|
288
322
|
- ontology/core/unit.ttl
|
|
323
|
+
- ontology/publisher/ahp/extensions.ttl
|
|
324
|
+
- ontology/publisher/api/extensions.ttl
|
|
289
325
|
- ontology/publisher/chp/extensions.ttl
|
|
326
|
+
- ontology/publisher/hkcmms/extensions.ttl
|
|
327
|
+
- ontology/publisher/jp/extensions.ttl
|
|
290
328
|
- ontology/publisher/phint/extensions.ttl
|
|
329
|
+
- ontology/publisher/thp/extensions.ttl
|
|
291
330
|
- ontology/quality/test-method.ttl
|
|
331
|
+
- shapes/ahp/monograph.ttl
|
|
332
|
+
- shapes/api/monograph.ttl
|
|
292
333
|
- shapes/chp/monograph.ttl
|
|
293
334
|
- shapes/edition-shapes.ttl
|
|
335
|
+
- shapes/hkcmms/monograph.ttl
|
|
336
|
+
- shapes/jp/monograph.ttl
|
|
294
337
|
- shapes/monograph-shapes.ttl
|
|
338
|
+
- shapes/phint/monograph.ttl
|
|
339
|
+
- shapes/thp/monograph.ttl
|
|
295
340
|
homepage: https://github.com/openphar/open-pharmacopoeia
|
|
296
341
|
licenses:
|
|
297
342
|
- MIT
|