Skip to content

Commit 07e5119

Browse files
author
Your Name
committed
Generate SHACL and JSON schema files
1 parent e05d47e commit 07e5119

8 files changed

Lines changed: 136 additions & 120 deletions

File tree

  • REF_STDs
    • Data_reference_standard_on_Canadian_provinces_and_territories
    • Data_reference_standard_on_codes_for_current_and_past_official_names_of_countries,_territories_and_geographic_areas_recognized_by_the_Government_of_Canada
    • Data_reference_standard_on_date_and_time_format
    • Data_reference_standard_on_industry_classification_system
    • Data_reference_standard_on_person(s):_gender
    • Data_reference_standard_on_person(s):_name_architecture
    • Data_reference_standard_on_person(s):_sex_assigned_at_birth
    • Data_reference_standard_on_the_business_number
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
{
2-
"@context": "http://www.w3.org/ns/shacl#",
3-
"@type": "NodeShape",
4-
"targetClass": "http://example.org/Standard",
5-
"property": [
6-
{
7-
"path": "http://example.org/property1",
8-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
9-
},
10-
{
11-
"path": "http://example.org/property2",
12-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
13-
}
14-
]
15-
}
1+
@prefix ex: <http://example.org/> .
2+
@prefix sh: <http://www.w3.org/ns/shacl#> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
5+
ex:Standard a sh:NodeShape ;
6+
sh:property ex:property1,
7+
ex:property2 ;
8+
sh:targetClass ex:Standard .
9+
10+
ex:property1 a sh:PropertyShape ;
11+
sh:datatype xsd:string ;
12+
sh:path ex:property1 .
13+
14+
ex:property2 a sh:PropertyShape ;
15+
sh:datatype xsd:string ;
16+
sh:path ex:property2 .
17+
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
{
2-
"@context": "http://www.w3.org/ns/shacl#",
3-
"@type": "NodeShape",
4-
"targetClass": "http://example.org/Standard",
5-
"property": [
6-
{
7-
"path": "http://example.org/property1",
8-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
9-
},
10-
{
11-
"path": "http://example.org/property2",
12-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
13-
}
14-
]
15-
}
1+
@prefix ex: <http://example.org/> .
2+
@prefix sh: <http://www.w3.org/ns/shacl#> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
5+
ex:Standard a sh:NodeShape ;
6+
sh:property ex:property1,
7+
ex:property2 ;
8+
sh:targetClass ex:Standard .
9+
10+
ex:property1 a sh:PropertyShape ;
11+
sh:datatype xsd:string ;
12+
sh:path ex:property1 .
13+
14+
ex:property2 a sh:PropertyShape ;
15+
sh:datatype xsd:string ;
16+
sh:path ex:property2 .
17+
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
{
2-
"@context": "http://www.w3.org/ns/shacl#",
3-
"@type": "NodeShape",
4-
"targetClass": "http://example.org/Standard",
5-
"property": [
6-
{
7-
"path": "http://example.org/property1",
8-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
9-
},
10-
{
11-
"path": "http://example.org/property2",
12-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
13-
}
14-
]
15-
}
1+
@prefix ex: <http://example.org/> .
2+
@prefix sh: <http://www.w3.org/ns/shacl#> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
5+
ex:Standard a sh:NodeShape ;
6+
sh:property ex:property1,
7+
ex:property2 ;
8+
sh:targetClass ex:Standard .
9+
10+
ex:property1 a sh:PropertyShape ;
11+
sh:datatype xsd:string ;
12+
sh:path ex:property1 .
13+
14+
ex:property2 a sh:PropertyShape ;
15+
sh:datatype xsd:string ;
16+
sh:path ex:property2 .
17+
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
{
2-
"@context": "http://www.w3.org/ns/shacl#",
3-
"@type": "NodeShape",
4-
"targetClass": "http://example.org/Standard",
5-
"property": [
6-
{
7-
"path": "http://example.org/property1",
8-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
9-
},
10-
{
11-
"path": "http://example.org/property2",
12-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
13-
}
14-
]
15-
}
1+
@prefix ex: <http://example.org/> .
2+
@prefix sh: <http://www.w3.org/ns/shacl#> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
5+
ex:Standard a sh:NodeShape ;
6+
sh:property ex:property1,
7+
ex:property2 ;
8+
sh:targetClass ex:Standard .
9+
10+
ex:property1 a sh:PropertyShape ;
11+
sh:datatype xsd:string ;
12+
sh:path ex:property1 .
13+
14+
ex:property2 a sh:PropertyShape ;
15+
sh:datatype xsd:string ;
16+
sh:path ex:property2 .
17+
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
{
2-
"@context": "http://www.w3.org/ns/shacl#",
3-
"@type": "NodeShape",
4-
"targetClass": "http://example.org/Standard",
5-
"property": [
6-
{
7-
"path": "http://example.org/property1",
8-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
9-
},
10-
{
11-
"path": "http://example.org/property2",
12-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
13-
}
14-
]
15-
}
1+
@prefix ex: <http://example.org/> .
2+
@prefix sh: <http://www.w3.org/ns/shacl#> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
5+
ex:Standard a sh:NodeShape ;
6+
sh:property ex:property1,
7+
ex:property2 ;
8+
sh:targetClass ex:Standard .
9+
10+
ex:property1 a sh:PropertyShape ;
11+
sh:datatype xsd:string ;
12+
sh:path ex:property1 .
13+
14+
ex:property2 a sh:PropertyShape ;
15+
sh:datatype xsd:string ;
16+
sh:path ex:property2 .
17+
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
{
2-
"@context": "http://www.w3.org/ns/shacl#",
3-
"@type": "NodeShape",
4-
"targetClass": "http://example.org/Standard",
5-
"property": [
6-
{
7-
"path": "http://example.org/property1",
8-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
9-
},
10-
{
11-
"path": "http://example.org/property2",
12-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
13-
}
14-
]
15-
}
1+
@prefix ex: <http://example.org/> .
2+
@prefix sh: <http://www.w3.org/ns/shacl#> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
5+
ex:Standard a sh:NodeShape ;
6+
sh:property ex:property1,
7+
ex:property2 ;
8+
sh:targetClass ex:Standard .
9+
10+
ex:property1 a sh:PropertyShape ;
11+
sh:datatype xsd:string ;
12+
sh:path ex:property1 .
13+
14+
ex:property2 a sh:PropertyShape ;
15+
sh:datatype xsd:string ;
16+
sh:path ex:property2 .
17+
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
{
2-
"@context": "http://www.w3.org/ns/shacl#",
3-
"@type": "NodeShape",
4-
"targetClass": "http://example.org/Standard",
5-
"property": [
6-
{
7-
"path": "http://example.org/property1",
8-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
9-
},
10-
{
11-
"path": "http://example.org/property2",
12-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
13-
}
14-
]
15-
}
1+
@prefix ex: <http://example.org/> .
2+
@prefix sh: <http://www.w3.org/ns/shacl#> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
5+
ex:Standard a sh:NodeShape ;
6+
sh:property ex:property1,
7+
ex:property2 ;
8+
sh:targetClass ex:Standard .
9+
10+
ex:property1 a sh:PropertyShape ;
11+
sh:datatype xsd:string ;
12+
sh:path ex:property1 .
13+
14+
ex:property2 a sh:PropertyShape ;
15+
sh:datatype xsd:string ;
16+
sh:path ex:property2 .
17+
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
{
2-
"@context": "http://www.w3.org/ns/shacl#",
3-
"@type": "NodeShape",
4-
"targetClass": "http://example.org/Standard",
5-
"property": [
6-
{
7-
"path": "http://example.org/property1",
8-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
9-
},
10-
{
11-
"path": "http://example.org/property2",
12-
"datatype": "http://www.w3.org/2001/XMLSchema#string"
13-
}
14-
]
15-
}
1+
@prefix ex: <http://example.org/> .
2+
@prefix sh: <http://www.w3.org/ns/shacl#> .
3+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
4+
5+
ex:Standard a sh:NodeShape ;
6+
sh:property ex:property1,
7+
ex:property2 ;
8+
sh:targetClass ex:Standard .
9+
10+
ex:property1 a sh:PropertyShape ;
11+
sh:datatype xsd:string ;
12+
sh:path ex:property1 .
13+
14+
ex:property2 a sh:PropertyShape ;
15+
sh:datatype xsd:string ;
16+
sh:path ex:property2 .
17+

0 commit comments

Comments
 (0)