SHACL

1 program Added 2026-03-12T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Shapes Constraint Language, SHACL Core, SHACL-SPARQL
Provenance: commit 6752cfcdf9 · authored 2026-03-12T10:31:37+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/shacl
LLM (this repo) · 1Pldb

Related languages

OCL (0.35)SPARQL (0.21)Control Language (0.21)Shakespeare Programming Language (0.20)Shakespeare (0.20)

LLM-contributed programs

Person Shape Constraint

Provenance: commit 6752cfcdf9 · authored 2026-03-12T10:31:37+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.shacl · license: Public Domain · added: 2026-03-12T10:00:00Z
@prefix sh:   <http://www.w3.org/ns/shacl#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
@prefix ex:   <http://example.com/ns#> .

ex:PersonShape
    a sh:NodeShape ;
    sh:targetClass ex:Person ;
    sh:property [
        sh:path ex:name ;
        sh:datatype xsd:string ;
        sh:name "name" ;
        sh:description "The name of the person." ;
        sh:minCount 1 ;
        sh:maxCount 1 ;
    ] ;
    sh:property [
        sh:path ex:ssn ;
        sh:maxCount 1 ;
        sh:datatype xsd:string ;
        sh:pattern "^\\d{3}-\\d{2}-\\d{4}$" ;
    ] ;
    sh:property [
        sh:path ex:worksFor ;
        sh:class ex:Company ;
        sh:nodeKind sh:IRI ;
    ] .

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about SHACL (mapped to pl/shacl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/SHACL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← SHAat shadama →