Context
The shared YAML-LD context for nanopub authoring in this site is:
https://nanopublishing.iolanta.tech/context/v0.yamlld
Overall Skeleton
"@context": https://nanopublishing.iolanta.tech/context/v0.yamlld
$nanopublication:
$assertion:
# Assertion: what do we want to say?
- $id: something
is: kind of anything
# Provenance: on which grounds do we assert the above? On whose authority?
prov:wasAttributedTo: https://some-important-international.example.org
# Top Level: what can we say about the whole publication that we're writing?
npx:supersedes: URL of a previous publication
this:
this: is the local prefix for entities defined inside the current nanopublication. In the shared context, it expands to the nanopublication's own namespace, so this:MyEntity means "the resource MyEntity in this nanopublication".
Use this: when you need a local identifier that belongs to the nanopublication you are writing, for example when the nanopublication introduces or embeds a new entity. Use an external IRI such as wd:Q319 when the entity already exists elsewhere.
$nanopublication:
$assertion:
- $id: this:MyEntity
rdfs:label: My entity
npx:introduces: this:MyEntity
Prefixes
The shared context defines these prefixes:
| Prefix | Expands to |
|---|---|
this: |
http://purl.org/nanopub/temp/np/ |
npx: |
http://purl.org/nanopub/x/ |
wd: |
https://www.wikidata.org/entity/ |
wdt: |
http://www.wikidata.org/prop/direct/ |
prov: |
http://www.w3.org/ns/prov# |
rdfs: |
http://www.w3.org/2000/01/rdf-schema# |
Top level
npx:describes
States what the nanopublication is about.
$nanopublication: …
npx:describes: wd:Q319
npx:supersedes
Declares that this nanopublication supersedes an older nanopublication.
$nanopublication: …
npx:supersedes: https://w3id.org/np/RA…
npx:invalidates
Declares that this nanopublication invalidates another nanopublication.
$nanopublication: …
npx:invalidates: https://w3id.org/np/RA…
npx:hasOriginalVersion
Points to the original nanopublication in a version chain.
$nanopublication: …
npx:hasOriginalVersion: https://w3id.org/np/RA…
npx:retracts
Marks a nanopublication as retracting another nanopublication.
$nanopublication: …
npx:retracts: https://w3id.org/np/RA…
npx:hasNanopubType
Assigns a nanopublication type.
$nanopublication: …
npx:hasNanopubType: npx:DraftNanopub
npx:introduces
States that the nanopublication introduces an entity.
$nanopublication: …
npx:introduces: this:MyEntity
npx:embeds
States that the nanopublication embeds an entity.
$nanopublication: …
npx:embeds: this:MyEntity
npx:wasCreatedWith
Attributes creation to a software tool.
$nanopublication: …
npx:wasCreatedWith: https://example.org/tool
npx:certifies
Expresses certification of another nanopublication.
$nanopublication: …
npx:certifies: https://w3id.org/np/RA…
npx:qualifies
Expresses a weaker qualification of another nanopublication.
$nanopublication: …
npx:qualifies: https://w3id.org/np/RA…
npx:approvesOf
Expresses approval of another nanopublication.
$nanopublication: …
npx:approvesOf: https://w3id.org/np/RA…
npx:disapprovesOf
Expresses disapproval of another nanopublication.
$nanopublication: …
npx:disapprovesOf: https://w3id.org/np/RA…
$nanopublication level
prov:wasAttributedTo
Attributes the assertion to an agent or authority.
$nanopublication:
$assertion: …
prov:wasAttributedTo: wd:Q6867
$assertion level
The shared context defines no assertion predicates. Assertion predicates are domain-specific and usually come from a local overlay context.