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": "_:N316501c21fac4668b61eabdfed75184b"
},
{
"@id": "_:Nd5ae44153ea54de1b7555b9e773ff2c1"
}
],
"sh:targetClass": {
"@id": "schema:TechArticle"
}
},
{
"@id": "_:N316501c21fac4668b61eabdfed75184b",
"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": "_:Nd5ae44153ea54de1b7555b9e773ff2c1",
"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: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 .
@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:nodeID="N320fee01998f4a6d8485ea8113518035">
<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:Description rdf:nodeID="Na0ea752afd604e54afafb9d3b08b6ecf">
<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: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="N320fee01998f4a6d8485ea8113518035"/>
<sh:property rdf:nodeID="Na0ea752afd604e54afafb9d3b08b6ecf"/>
</rdf:Description>
</rdf:RDF>
_:N3ea3b674fc684007b678d512cf649fd8 <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
_:Ne1e055bc00e9439aa6b88913f7a68bea <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/2000/01/rdf-schema#label> "TechArticle Shape" .
_:N3ea3b674fc684007b678d512cf649fd8 <http://www.w3.org/ns/shacl#path> <https://schema.org/description> .
_:N3ea3b674fc684007b678d512cf649fd8 <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/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> _:Ne1e055bc00e9439aa6b88913f7a68bea .
_:Ne1e055bc00e9439aa6b88913f7a68bea <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/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/shacl#NodeShape> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#property> _:N3ea3b674fc684007b678d512cf649fd8 .
_:Ne1e055bc00e9439aa6b88913f7a68bea <http://www.w3.org/ns/shacl#message> "TechArticle must have exactly one headline." .
_:Ne1e055bc00e9439aa6b88913f7a68bea <http://www.w3.org/ns/shacl#datatype> <http://www.w3.org/2001/XMLSchema#string> .
_:Ne1e055bc00e9439aa6b88913f7a68bea <http://www.w3.org/ns/shacl#path> <https://schema.org/headline> .
_:N3ea3b674fc684007b678d512cf649fd8 <http://www.w3.org/ns/shacl#message> "TechArticle must have a description summary." .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#targetClass> <https://schema.org/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#> .
_:N7a5a1ad71f94455caeea4fa8be9004b7 {
wiki:Tech_Article_Shape a sh:NodeShape ;
rdfs:label "TechArticle Shape" ;
rdfs:comment "Basic validation rules for TechArticle documents." ;
sh:property _:N4ae62ae7a5a9449fbe45713a6e24700a,
_:Nb4497636a7494523ac7bef197348ef0b ;
sh:targetClass schema:TechArticle .
_:N4ae62ae7a5a9449fbe45713a6e24700a sh:datatype xsd:string ;
sh:message "TechArticle must have a description summary." ;
sh:minCount 1 ;
sh:path schema:description .
_:Nb4497636a7494523ac7bef197348ef0b sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:message "TechArticle must have exactly one headline." ;
sh:minCount 1 ;
sh:path schema:headline .
}
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#property> _:N6383886d1b7b4a11a6cb977b90ec04b1 .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#label> "TechArticle Shape" .
_:N6383886d1b7b4a11a6cb977b90ec04b1 <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/ns/shacl#property> _:N918afe069c9f493bbf5b2754899cc4cd .
_:N918afe069c9f493bbf5b2754899cc4cd <http://www.w3.org/ns/shacl#path> <https://schema.org/description> .
_:N918afe069c9f493bbf5b2754899cc4cd <http://www.w3.org/ns/shacl#message> "TechArticle must have a description summary." .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#comment> "Basic validation rules for TechArticle documents." .
_:N918afe069c9f493bbf5b2754899cc4cd <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> .
_:N6383886d1b7b4a11a6cb977b90ec04b1 <http://www.w3.org/ns/shacl#message> "TechArticle must have exactly one headline." .
_:N918afe069c9f493bbf5b2754899cc4cd <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
_:N6383886d1b7b4a11a6cb977b90ec04b1 <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
_:N6383886d1b7b4a11a6cb977b90ec04b1 <http://www.w3.org/ns/shacl#maxCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
_:N6383886d1b7b4a11a6cb977b90ec04b1 <http://www.w3.org/ns/shacl#path> <https://schema.org/headline> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#targetClass> <https://schema.org/TechArticle> .