Accepting a claim

An RDF 1.2 triple term: a claim names a triple without asserting it, and accepting the claim asserts it.

data/triple-term-n3.ttl · triple-term-n3.n3 · output · proof · check · playground


The question

Which relationship follows when a claim about who knows whom is accepted?


Historical background

RDF 1.1 already had a vocabulary for describing statements through reification. RDF 1.2 adds triple terms and a relation connecting them to reifiers. The example uses a triple term to name the content of a claim and an explicit rule to assert the triple when the claim is accepted. W3C, RDF 1.2 Concepts and Abstract Data Model


What the program says

data/triple-term-n3.ttl:

# Alice claims that Bob knows Carol without asserting it. Accepting the
# claim concludes the relationship; a triple-term pattern reaches inside it.
@prefix : <https://example.org/> .

:alice :claims <<( :bob :knows :carol )>> .

triple-term-n3.n3:

# Alice claims that Bob knows Carol without asserting it. Accepting the
# claim concludes the relationship; a triple-term pattern reaches inside it.
@prefix : <https://example.org/> .

{ ?claimant :claims <<( ?s :knows ?o )>> } => { ?s :knows ?o } .

What eyemind concludes

The command writes these conclusions in its native output format:

@prefix : <https://example.org/> .

:bob :knows :carol .

The rule matches the subject and object inside the triple term. Mentioning the triple in the data does not assert it; the rule derives that assertion.

The check report records the corresponding claims as JavaScript expressions:

// Checked answers: these follow from the input program and are every answer of its questions.
rdf(iri('https://example.org/bob'), iri('https://example.org/knows'), iri('https://example.org/carol'))

What the proof establishes

The saved report ends with verdict('checked'). The checker reads the clauses from the compiled program, not from the proof, and never calls the reasoning engine. It answers the original questions from the proof’s call tables, checking each table by expanding its call one level against the program; it requires each derived listing to be closed under the forward rules; and it replays the recorded firing of each listed fact, computing primitives again. A step, table or listing the check does not use fails it.

The verdict establishes that the displayed claims follow from the compiled program and are every answer of its original questions.


Try it

From the repository root:

node bin/eyemind.js examples/data/triple-term-n3.ttl examples/triple-term-n3.n3
node bin/eyemind.js --proof examples/data/triple-term-n3.ttl examples/triple-term-n3.n3
node bin/eyemind.js --check-proof examples/proof/triple-term-n3.js examples/data/triple-term-n3.ttl examples/triple-term-n3.n3