This document defines SHACL validation rules enforced on any type: TechArticle document in this wiki.
It ensures that all technical articles have at least a headline and description in their YAML frontmatter.
This document defines SHACL validation rules enforced on any type: TechArticle document in this wiki.
It ensures that all technical articles have at least a headline and description in their YAML frontmatter.
{
"@context": {
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "https://schema.org/",
"sh": "http://www.w3.org/ns/shacl#",
"wiki": "https://wazootech.github.io/wiki/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@graph": [
{
"@id": "wiki:Tech_Article_Shape",
"@type": "sh:NodeShape",
"rdfs:comment": "Basic validation rules for TechArticle documents.",
"rdfs:label": "TechArticle Shape",
"sh:property": [
{
"@id": "_:N2f33feaf6fd34954aa45ea0598292012"
},
{
"@id": "_:N46dac4e0d15b4516b8b0d7804dbf0b65"
}
],
"sh:targetClass": {
"@id": "schema:TechArticle"
}
},
{
"@id": "_:N2f33feaf6fd34954aa45ea0598292012",
"sh:datatype": {
"@id": "xsd:string"
},
"sh:maxCount": 1,
"sh:message": "TechArticle must have exactly one headline.",
"sh:minCount": 1,
"sh:path": {
"@id": "schema:headline"
}
},
{
"@id": "_:N46dac4e0d15b4516b8b0d7804dbf0b65",
"sh:datatype": {
"@id": "xsd:string"
},
"sh:message": "TechArticle must have a description summary.",
"sh:minCount": 1,
"sh:path": {
"@id": "schema:description"
}
}
]
}
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix wiki: <https://wazootech.github.io/wiki/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
wiki:Tech_Article_Shape a sh:NodeShape ;
rdfs:label "TechArticle Shape" ;
rdfs:comment "Basic validation rules for TechArticle documents." ;
sh:property [ sh:datatype xsd:string ;
sh:message "TechArticle must have a description summary." ;
sh:minCount 1 ;
sh:path schema:description ],
[ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:message "TechArticle must have exactly one headline." ;
sh:minCount 1 ;
sh:path schema:headline ] ;
sh:targetClass schema:TechArticle .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix wiki: <https://wazootech.github.io/wiki/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
wiki:Tech_Article_Shape a sh:NodeShape ;
rdfs:label "TechArticle Shape" ;
rdfs:comment "Basic validation rules for TechArticle documents." ;
sh:property [ sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:message "TechArticle must have exactly one headline." ;
sh:minCount 1 ;
sh:path schema:headline ],
[ sh:datatype xsd:string ;
sh:message "TechArticle must have a description summary." ;
sh:minCount 1 ;
sh:path schema:description ] ;
sh:targetClass schema:TechArticle .
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:sh="http://www.w3.org/ns/shacl#"
>
<rdf:Description rdf:about="https://wazootech.github.io/wiki/Tech_Article_Shape">
<rdf:type rdf:resource="http://www.w3.org/ns/shacl#NodeShape"/>
<rdfs:label>TechArticle Shape</rdfs:label>
<rdfs:comment>Basic validation rules for TechArticle documents.</rdfs:comment>
<sh:targetClass rdf:resource="https://schema.org/TechArticle"/>
<sh:property rdf:nodeID="N8e3239ac4d5d4b2fa111e894ddc4e1ac"/>
<sh:property rdf:nodeID="Nf9f9fae68b104c7cb189acfa2a9ca9da"/>
</rdf:Description>
<rdf:Description rdf:nodeID="Nf9f9fae68b104c7cb189acfa2a9ca9da">
<sh:path rdf:resource="https://schema.org/description"/>
<sh:minCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:minCount>
<sh:datatype rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
<sh:message>TechArticle must have a description summary.</sh:message>
</rdf:Description>
<rdf:Description rdf:nodeID="N8e3239ac4d5d4b2fa111e894ddc4e1ac">
<sh:path rdf:resource="https://schema.org/headline"/>
<sh:minCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:minCount>
<sh:maxCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:maxCount>
<sh:datatype rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
<sh:message>TechArticle must have exactly one headline.</sh:message>
</rdf:Description>
</rdf:RDF>
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#comment> "Basic validation rules for TechArticle documents." .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#property> _:Nde37e9383ae8417eaba1ecf788a76e25 .
_:Nde37e9383ae8417eaba1ecf788a76e25 <http://www.w3.org/ns/shacl#datatype> <http://www.w3.org/2001/XMLSchema#string> .
_:N3534094aed3848879a2a72cd163e5b97 <http://www.w3.org/ns/shacl#path> <https://schema.org/description> .
_:N3534094aed3848879a2a72cd163e5b97 <http://www.w3.org/ns/shacl#message> "TechArticle must have a description summary." .
_:N3534094aed3848879a2a72cd163e5b97 <http://www.w3.org/ns/shacl#datatype> <http://www.w3.org/2001/XMLSchema#string> .
_:Nde37e9383ae8417eaba1ecf788a76e25 <http://www.w3.org/ns/shacl#maxCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/shacl#NodeShape> .
_:Nde37e9383ae8417eaba1ecf788a76e25 <http://www.w3.org/ns/shacl#path> <https://schema.org/headline> .
_:Nde37e9383ae8417eaba1ecf788a76e25 <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#property> _:N3534094aed3848879a2a72cd163e5b97 .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#label> "TechArticle Shape" .
_:N3534094aed3848879a2a72cd163e5b97 <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#targetClass> <https://schema.org/TechArticle> .
_:Nde37e9383ae8417eaba1ecf788a76e25 <http://www.w3.org/ns/shacl#message> "TechArticle must have exactly one headline." .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix wiki: <https://wazootech.github.io/wiki/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:N7b0105b756944257af619c63b7dc6f43 {
wiki:Tech_Article_Shape a sh:NodeShape ;
rdfs:label "TechArticle Shape" ;
rdfs:comment "Basic validation rules for TechArticle documents." ;
sh:property _:N8eaa710a217e4c4abed34dbb651c5ec8,
_:Nf6a0008bdbc540378ec231b09a8e60ed ;
sh:targetClass schema:TechArticle .
_:N8eaa710a217e4c4abed34dbb651c5ec8 sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:message "TechArticle must have exactly one headline." ;
sh:minCount 1 ;
sh:path schema:headline .
_:Nf6a0008bdbc540378ec231b09a8e60ed sh:datatype xsd:string ;
sh:message "TechArticle must have a description summary." ;
sh:minCount 1 ;
sh:path schema:description .
}
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#comment> "Basic validation rules for TechArticle documents." .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#property> _:Nbf0045aae5734257a64ca6b855caa8a9 .
_:Nbf0045aae5734257a64ca6b855caa8a9 <http://www.w3.org/ns/shacl#datatype> <http://www.w3.org/2001/XMLSchema#string> .
_:N855eacbcc74e4ea680eff051834dd916 <http://www.w3.org/ns/shacl#datatype> <http://www.w3.org/2001/XMLSchema#string> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/shacl#NodeShape> .
_:N855eacbcc74e4ea680eff051834dd916 <http://www.w3.org/ns/shacl#maxCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
_:Nbf0045aae5734257a64ca6b855caa8a9 <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#property> _:N855eacbcc74e4ea680eff051834dd916 .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#label> "TechArticle Shape" .
_:N855eacbcc74e4ea680eff051834dd916 <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#targetClass> <https://schema.org/TechArticle> .
_:Nbf0045aae5734257a64ca6b855caa8a9 <http://www.w3.org/ns/shacl#message> "TechArticle must have a description summary." .
_:N855eacbcc74e4ea680eff051834dd916 <http://www.w3.org/ns/shacl#path> <https://schema.org/headline> .
_:N855eacbcc74e4ea680eff051834dd916 <http://www.w3.org/ns/shacl#message> "TechArticle must have exactly one headline." .
_:Nbf0045aae5734257a64ca6b855caa8a9 <http://www.w3.org/ns/shacl#path> <https://schema.org/description> .