Worked example — a complete provenance record.
You imported a graph using activity :import_42, run by user :alice. Record the full audit trail like this:
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
:graph_2025_05_18 a prov:Entity ;
prov:wasGeneratedBy :import_42 .
:import_42 a prov:Activity ;
prov:wasAssociatedWith :alice ;
prov:startedAtTime "2025-05-18T10:30:00Z"^^xsd:dateTime .
:alice a prov:Agent ;
foaf:name "Alice" .
How to read it: the Entity points to the Activity that produced it (prov:wasGeneratedBy); the Activity points to the Agent responsible (prov:wasAssociatedWith). For the playground below you only need those two connector triples — declaring the classes (a prov:Entity / Activity / Agent) is recommended but the grader accepts the minimal form.