Instance Graph 27 / 41

Curated instance graph (A-box): individuals conforming to this schema.

idwine-benchmark
nameWine competency questions
descriptionThe seven competency questions of the wine ontology, less the one its schema answers, each paired with the specification of its correct answer over wine's worked-example graph.
target_schemahttps://w3id.org/wine-linkml/
target_schema_version0.2.0
target_datasetworked-example
target_dataset_version0.2.0

Source: wine-benchmark.yaml

Graph

The individuals above as a connected A-box: nodes wear the same symbols their classes and enumerations have in the schema graph, and edges are the object-property assertions between them.

Drag to pan • Scroll to zoom

Individuals

Individual

Cabernet Sauvignon with seafood

https://w3id.org/cqa/wine-benchmark/cq-03
answer_kind
closed-world-negative
connecting_class
https://w3id.org/wine-linkml/PairingRecommendation
expected_anchors
https://w3id.org/wine-linkml/cabernet-sauvignon
expected_anchors
https://w3id.org/wine-linkml/seafood-dish
ground_truth
None on record. No pairing recommendation links the Cabernet Sauvignon to a seafood dish, and none is inferable. Under a closed-world reading the absence of a recommendation is not evidence against the pairing, only the absence of a claim for it.
question
Does Cabernet Sauvignon go well with seafood?
unconnected_anchors
https://w3id.org/wine-linkml/cabernet-sauvignon
unconnected_anchors
https://w3id.org/wine-linkml/seafood-dish
Individual

Wine for grilled meat

https://w3id.org/cqa/wine-benchmark/cq-04
answer_kind
attribution
expected_anchors
https://w3id.org/wine-linkml/cabernet-sauvignon
expected_anchors
https://w3id.org/wine-linkml/grilled-meat
expected_anchors
https://w3id.org/wine-linkml/pr-cabsauv-grilledmeat
expected_citations
https://w3id.org/wine-linkml/pr-cabsauv-grilledmeat
ground_truth
The Cabernet Sauvignon, on the pr-cabsauv-grilledmeat recommendation, with confidence 0.9 and the rationale that its tannins bind the fats and proteins of grilled red meat.
question
What is the best choice of wine for grilled meat?
Individual

Characteristics affecting a pairing

https://w3id.org/cqa/wine-benchmark/cq-05
answer_kind
synthesis
expected_anchors
https://w3id.org/wine-linkml/cabernet-sauvignon
expected_anchors
https://w3id.org/wine-linkml/chateau-morgon-beaujolais
expected_anchors
https://w3id.org/wine-linkml/napa-chardonnay
expected_anchors
https://w3id.org/wine-linkml/pr-beaujolais-chicken
expected_anchors
https://w3id.org/wine-linkml/pr-cabsauv-grilledmeat
expected_anchors
https://w3id.org/wine-linkml/pr-chardonnay-seafood
expected_citations
https://w3id.org/wine-linkml/pr-beaujolais-chicken
expected_citations
https://w3id.org/wine-linkml/pr-cabsauv-grilledmeat
expected_citations
https://w3id.org/wine-linkml/pr-chardonnay-seafood
ground_truth
A pattern across the three recommendations' rationales, which no single record states: tannin against protein, acidity against delicate seafood, and a light body's versatility with white meat.
question
Which characteristics of a wine affect its appropriateness for a dish?
Individual

Vintage variation

https://w3id.org/cqa/wine-benchmark/cq-06
answer_kind
comparison
expected_anchors
https://w3id.org/wine-linkml/napa-zinfandel-2017
expected_anchors
https://w3id.org/wine-linkml/napa-zinfandel-2018
expected_anchors
https://w3id.org/wine-linkml/vy-2017
expected_anchors
https://w3id.org/wine-linkml/vy-2018
ground_truth
Yes. The 2017 and 2018 Napa Zinfandel share grape, region and maker and differ in vintage and in body: medium against full.
question
Does a bouquet or body of a specific wine change with vintage year?
Individual

Good vintages for Napa Zinfandel

https://w3id.org/cqa/wine-benchmark/cq-07
answer_kind
attribution
answer_kind
comparison
expected_anchors
https://w3id.org/wine-linkml/napa-zinfandel-2017
expected_anchors
https://w3id.org/wine-linkml/napa-zinfandel-2018
expected_anchors
https://w3id.org/wine-linkml/va-napa-zin-2017
expected_anchors
https://w3id.org/wine-linkml/va-napa-zin-2018
expected_citations
https://w3id.org/wine-linkml/va-napa-zin-2017
expected_citations
https://w3id.org/wine-linkml/va-napa-zin-2018
ground_truth
2018. The regional vintage chart rates 2018 good and 2017 average, each with its source and confidence. The answer carries attribution: not "2018 was good" but "the regional vintage chart rates 2018 good."
question
What were good vintages for Napa Zinfandel?
Individual

Wine competency questions

https://w3id.org/cqa/wine-benchmark
The seven competency questions of the wine ontology, less the one its schema answers, each paired with the specification of its correct answer over wine's worked-example graph.
Type
Benchmark
competency_question_answers
Bordeaux colour
competency_question_answers
Cabernet Sauvignon with seafood
competency_question_answers
Wine for grilled meat
competency_question_answers
Characteristics affecting a pairing
competency_question_answers
Vintage variation
competency_question_answers
Good vintages for Napa Zinfandel
target_dataset
worked-example
target_schema
https://w3id.org/wine-linkml/

Schema Graph

Initializing visualization...
Drag to pan • Scroll to zoom

Namespaces 11

Namespace prefixes used in this ontology.

Prefix Namespace IRI
https://w3id.org/cqa/
cco https://www.commoncoreontologies.org/
cqa https://w3id.org/cqa/
earl http://www.w3.org/ns/earl#
linkml https://w3id.org/linkml/
obo http://purl.obolibrary.org/obo/
skos http://www.w3.org/2004/02/skos/core#
owl http://www.w3.org/2002/07/owl#
rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs http://www.w3.org/2000/01/rdf-schema#
xsd http://www.w3.org/2001/XMLSchema#

Classes 3

Classes defined in this ontology.

  • Class

    Benchmark

    A named set of competency question answers, evaluated against one knowledge graph.

    Subclass of (external)
    Information Content Entity
    Mappings
    close: earl:TestRequirement
    Slots
    • competency_question_answers : CompetencyQuestionAnswer multivalued

      The questions this benchmark holds.

    • description : string

      A longer prose account of what this benchmark covers.

    • id : string refined here

      The short, stable identifier a record is known by.

    • name : string

      A short human-readable label.

    • target_dataset : string required

      Which instance graph the anchors resolve in, named as the target package publishes it: a dataset name from that package's publish manifest. One schema can have several, and they need not hold the same records, so naming the schema and its version does not identify one.

    • target_dataset_version : string required

      The version of the dataset the anchors were written against: the release identifier of whatever publishes it, which is the schema's own version when the two ship together. It fixes which records exist, since records can be added, corrected or removed without the schema changing.

    • target_schema : uri required

      The schema the target graph's records conform to, as a URI.

    • target_schema_version : string required

      The version of the target schema the anchors were written against. It fixes how identifiers are minted, which can change between releases.

  • Class

    CompetencyQuestionAnswer

    A competency question paired with the specification of its correct answer.

    Subclass of (external)
    Information Content Entity
    Mappings
    close: earl:TestCase
    Rules
    • A closed-world negative states the connection it claims is absent.

      when answer_kind has value closed-world-negative, then unconnected_anchors is present

    • An attribution names the source its answer rests on.

      when answer_kind has value attribution, then expected_citations is present

    • A comparison sets two or more records against each other.

      when answer_kind has value comparison, then expected_anchors has at least 2 value(s)

    • A synthesis draws on two or more records, since a pattern no single record states needs more than one to state it.

      when answer_kind has value synthesis, then expected_anchors has at least 2 value(s)

    Slots
    • answer_kind : AnswerKindEnum required multivalued

      The kinds of answering this question calls for. Every kind named is a separate check, and all of them must pass.

    • connecting_class : uri

      The class a joining record would belong to, as a URI in the target schema. Optional, because a benchmark can be written against a graph whose schema its author does not have: without it the claim is that no record of any kind joins the anchors, and with it the claim is narrowed to one kind.

    • expected_anchors : DomainRecord required multivalued refined here

      The records a correct answer must retrieve, as IRIs into the target graph. For an answer that reports no such record exists, these are the records whose absent connection is the answer, and reaching them is what distinguishes that answer from a system that retrieved nothing.

    • expected_citations : DomainRecord multivalued

      The records a correct answer must rest on, as IRIs into the target graph. Always among the anchors: retrieving a record is not the same as answering from it. Empty is a real answer.

    • ground_truth : string required

      The correct answer in prose. A generated answer is scored against this; the anchors below are what retrieval is scored against.

    • id : string refined here

      The short, stable identifier a record is known by.

    • name : string

      A short human-readable label.

    • question : string required

      The competency question, in the words it would be asked in.

    • unconnected_anchors : DomainRecord multivalued

      The anchors that no single record joins, for an answer whose correctness is that the graph holds no such connection. A subset of the anchors: a claim about a record retrieval was never required to reach cannot be checked against what was retrieved. Records held by a container do not count as joined by it.

  • Class

    DomainRecord

    A record in the knowledge graph that a benchmark is evaluated against. Its instances belong to that graph, not to this schema.

    Slots
    • id : string

      The short, stable identifier a record is known by.

Slots 14

Slots defined in this ontology.

Slot

answer_kind

The kinds of answering this question calls for. Every kind named is a separate check, and all of them must pass.

Range
AnswerKindEnum
Characteristics
Required Multivalued
Rules
  • A closed-world negative states the connection it claims is absent.

    when answer_kind has value closed-world-negative, then unconnected_anchors is present

  • An attribution names the source its answer rests on.

    when answer_kind has value attribution, then expected_citations is present

  • A comparison sets two or more records against each other.

    when answer_kind has value comparison, then expected_anchors has at least 2 value(s)

  • A synthesis draws on two or more records, since a pattern no single record states needs more than one to state it.

    when answer_kind has value synthesis, then expected_anchors has at least 2 value(s)

Slot

connecting_class

The class a joining record would belong to, as a URI in the target schema. Optional, because a benchmark can be written against a graph whose schema its author does not have: without it the claim is that no record of any kind joins the anchors, and with it the claim is narrowed to one kind.

Range
uri
Slot

description

A longer prose account of what this benchmark covers.

Domain
Benchmark
Range
string
Slot

expected_anchors

The records a correct answer must retrieve, as IRIs into the target graph. For an answer that reports no such record exists, these are the records whose absent connection is the answer, and reaching them is what distinguishes that answer from a system that retrieved nothing.

Range
DomainRecord
Characteristics
Multivalued
Rules
  • A comparison sets two or more records against each other.

    when answer_kind has value comparison, then expected_anchors has at least 2 value(s)

  • A synthesis draws on two or more records, since a pattern no single record states needs more than one to state it.

    when answer_kind has value synthesis, then expected_anchors has at least 2 value(s)

Slot

expected_citations

The records a correct answer must rest on, as IRIs into the target graph. Always among the anchors: retrieving a record is not the same as answering from it. Empty is a real answer.

Range
DomainRecord
Characteristics
Multivalued Specializes: expected_anchors
Rules
  • An attribution names the source its answer rests on.

    when answer_kind has value attribution, then expected_citations is present

Slot

ground_truth

The correct answer in prose. A generated answer is scored against this; the anchors below are what retrieval is scored against.

Range
string
Characteristics
Required
Slot

target_dataset

Which instance graph the anchors resolve in, named as the target package publishes it: a dataset name from that package's publish manifest. One schema can have several, and they need not hold the same records, so naming the schema and its version does not identify one.

Domain
Benchmark
Range
string
Characteristics
Required
Slot

target_dataset_version

The version of the dataset the anchors were written against: the release identifier of whatever publishes it, which is the schema's own version when the two ship together. It fixes which records exist, since records can be added, corrected or removed without the schema changing.

Domain
Benchmark
Range
string
Characteristics
Required
Slot

target_schema

The schema the target graph's records conform to, as a URI.

Domain
Benchmark
Range
uri
Characteristics
Required
Slot

target_schema_version

The version of the target schema the anchors were written against. It fixes how identifiers are minted, which can change between releases.

Domain
Benchmark
Range
string
Characteristics
Required
Slot

unconnected_anchors

The anchors that no single record joins, for an answer whose correctness is that the graph holds no such connection. A subset of the anchors: a claim about a record retrieval was never required to reach cannot be checked against what was retrieved. Records held by a container do not count as joined by it.

Range
DomainRecord
Characteristics
Multivalued Specializes: expected_anchors
Rules
  • A closed-world negative states the connection it claims is absent.

    when answer_kind has value closed-world-negative, then unconnected_anchors is present

Enumerations 1

Enumerations defined in this ontology.

Enum

AnswerKindEnum

The kinds of answering a competency question can call for. Each names a different check on a correct answer.

Permissible values
  • attribution triggers 1 rule on CompetencyQuestionAnswer
    An answer that must carry the source it rests on. The question is answerable without it, but not answerable well.
  • closed-world-negative triggers 1 rule on CompetencyQuestionAnswer
    The correct answer is that the graph holds no such record. Absence of a record is not evidence against the claim, only absence of a claim for it.
  • comparison triggers 1 rule on CompetencyQuestionAnswer
    Two or more records set against each other on a shared slot.
  • lookup
    A value read from a single record.
  • synthesis triggers 1 rule on CompetencyQuestionAnswer
    A pattern across several records that no single record states.