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": "_:blank-shproperty-139929268253952"
},
{
"@id": "_:blank-shproperty-139929268255040"
}
],
"sh:targetClass": {
"@id": "schema:TechArticle"
}
},
{
"@id": "_:blank-shproperty-139929268253952",
"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": "_:blank-shproperty-139929268255040",
"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 <_:blank-shproperty-139929268253952>,
<_:blank-shproperty-139929268255040> ;
sh:targetClass schema:TechArticle .
<_:blank-shproperty-139929268253952> sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:message "TechArticle must have exactly one headline." ;
sh:minCount 1 ;
sh:path schema:headline .
<_:blank-shproperty-139929268255040> sh:datatype xsd:string ;
sh:message "TechArticle must have a description summary." ;
sh:minCount 1 ;
sh:path 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 <_:blank-shproperty-139929268253952>,
<_:blank-shproperty-139929268255040> ;
sh:targetClass schema:TechArticle .
<_:blank-shproperty-139929268253952> sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:message "TechArticle must have exactly one headline." ;
sh:minCount 1 ;
sh:path schema:headline .
<_:blank-shproperty-139929268255040> sh:datatype xsd:string ;
sh:message "TechArticle must have a description summary." ;
sh:minCount 1 ;
sh:path schema:description .
<?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:resource="_:blank-shproperty-139929268253952"/>
<sh:property rdf:resource="_:blank-shproperty-139929268255040"/>
</rdf:Description>
<rdf:Description rdf:about="_:blank-shproperty-139929268253952">
<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:about="_:blank-shproperty-139929268255040">
<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:RDF>
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/ns/shacl#targetClass> <https://schema.org/TechArticle> .
<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> .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#maxCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<_:blank-shproperty-139929268255040> <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#property> <_:blank-shproperty-139929268253952> .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<_:blank-shproperty-139929268255040> <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#path> <https://schema.org/headline> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#label> "TechArticle Shape" .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#comment> "Basic validation rules for TechArticle documents." .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#message> "TechArticle must have exactly one headline." .
<_:blank-shproperty-139929268255040> <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> <_:blank-shproperty-139929268255040> .
<_:blank-shproperty-139929268255040> <http://www.w3.org/ns/shacl#path> <https://schema.org/description> .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#datatype> <http://www.w3.org/2001/XMLSchema#string> .
@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#> .
_:N944988923a94454fbf0bbb9d6f31774a {
wiki:Tech_Article_Shape a sh:NodeShape ;
rdfs:label "TechArticle Shape" ;
rdfs:comment "Basic validation rules for TechArticle documents." ;
sh:property <_:blank-shproperty-139929268253952>,
<_:blank-shproperty-139929268255040> ;
sh:targetClass schema:TechArticle .
<_:blank-shproperty-139929268253952> sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:message "TechArticle must have exactly one headline." ;
sh:minCount 1 ;
sh:path schema:headline .
<_:blank-shproperty-139929268255040> 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/ns/shacl#targetClass> <https://schema.org/TechArticle> .
<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> .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#maxCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<_:blank-shproperty-139929268255040> <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#property> <_:blank-shproperty-139929268253952> .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<_:blank-shproperty-139929268255040> <http://www.w3.org/ns/shacl#minCount> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#path> <https://schema.org/headline> .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#label> "TechArticle Shape" .
<https://wazootech.github.io/wiki/Tech_Article_Shape> <http://www.w3.org/2000/01/rdf-schema#comment> "Basic validation rules for TechArticle documents." .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#message> "TechArticle must have exactly one headline." .
<_:blank-shproperty-139929268255040> <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> <_:blank-shproperty-139929268255040> .
<_:blank-shproperty-139929268255040> <http://www.w3.org/ns/shacl#path> <https://schema.org/description> .
<_:blank-shproperty-139929268253952> <http://www.w3.org/ns/shacl#datatype> <http://www.w3.org/2001/XMLSchema#string> .