FOAF Person¶
A FOAF Person must have a name and at most one mailbox.
About This Example¶
This example demonstrates two SHACL constraints on foaf:Person:
| Property | Constraint | Meaning |
|---|---|---|
foaf:name |
[1..*] |
Every person must have at least one name |
foaf:mbox |
[0..1] |
A person may have at most one mailbox |
The graph contains two individuals — Alice and Bob — both typed as foaf:Person, with Alice knowing Bob.
Try It¶
- Click any node to see its IRI, type, connections, and applicable SHACL constraints
- Click any edge to see the property IRI, source/target, and cardinality
- Click Edit & Validate to open the TTL editor
- Try removing
foaf:name "Alice Smith"from Alice and click Validate to see the SHACL violation - Click Edit Layout to change node shapes or edge styles
- Export your customized diagram as PNG or SVG
Keyboard shortcuts
Use the mouse wheel to zoom, and drag the canvas to pan. You can also drag individual nodes to reposition them.