Skip to content

Commit b4de957

Browse files
committed
Add conformsTo for JSON schema and JSON-LD
1 parent e77c5ca commit b4de957

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ogc/bblocks/register-context.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ transform:
66
."@id" = "bblocks://\(.itemIdentifier)"
77
| ."@type" = [("bblocks:" + (.itemClass[:1]|ascii_upcase) + .itemClass[1:]), "skos:Concept", "dcat:Dataset"]
88
| ."skos:prefLabel" = .name
9-
| .ldContext |= if . then { "prof:hasArtifact": . , "prof:hasRole": "role:mapping", "dct:format": "application/ld+json" } else null end
9+
| .ldContext |= if . then { "prof:hasArtifact": . , "prof:hasRole": "role:mapping", "dct:format": "application/ld+json", "dct:conformsTo": "https://www.w3.org/TR/json-ld11/" } else null end
1010
| .shaclShapes |= (if length > 0 then to_entries | map({ "prof:hasArtifact": .value, "rdfs:seeAlso": "bblocks://\(.key)", "prof:hasRole": "role:validation", "dct:format": "text/turtle", "dct:conformsTo": "shacl:" }) else null end)
11-
| .schema |= (if length > 0 then to_entries | map({ "prof:hasArtifact": .value , "prof:hasRole": "role:schema", "dct:format": .key }) else null end)
11+
| .schema |= (if length > 0 then to_entries | map({ "prof:hasArtifact": .value , "prof:hasRole": "role:schema", "dct:format": .key, "dct:conformsTo": "https://json-schema.org/draft/2020-12/schema" }) else null end)
1212
| .dependsOn |= if length > 0 then map("bblocks://\(.)") else null end
1313
| .profileOf |= if length > 0 then map("bblocks://\(.)") else null end
1414
| if $CS_URI then ."skos:topConceptOf" = {"@id": $CS_URI} end

0 commit comments

Comments
 (0)