Dontopedia

generate_test_data

From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-09.)

generate_test_data is generates a set of test queries and their expected outcomes.

17 facts·9 predicates·2 sources·3 in dispute

Mostly:returns(4), rdf:type(2), called by(2)

Maturity scale raw canonical shape-checked rule-derived certified

Inbound mentions (8)

Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.

callsCalls(2)

describesDescribes(2)

includesStepIncludes Step(2)

containsContains(1)

containsFunctionContains Function(1)

Other facts (16)

The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.

16 facts
PredicateValueRef
Returnstest_queries[1]
Returnsexpected_outcomes[1]
Returnstest_queries[2]
Returnsexpected_outcomes[2]
Rdf:typeFunction[1]
Rdf:typeFunction[2]
Called byMain[1]
Called byMain[2]
Producestest_queries[1]
Producesexpected_outcomes[1]
Returns Multipletest_queries[2]
Returns Multipleexpected_outcomes[2]
Has Parameternum_queries[1]
Descriptiongenerates a set of test queries and their expected outcomes[2]
Parameternum_queries[2]
Purposeto create validation dataset[2]

Timeline

Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.

typebeam/03fa72aa-cf63-4dbd-be06-fea404a8cebd
ex:Function
calledBybeam/03fa72aa-cf63-4dbd-be06-fea404a8cebd
ex:main
hasParameterbeam/03fa72aa-cf63-4dbd-be06-fea404a8cebd
num_queries
returnsbeam/03fa72aa-cf63-4dbd-be06-fea404a8cebd
test_queries
returnsbeam/03fa72aa-cf63-4dbd-be06-fea404a8cebd
expected_outcomes
producesbeam/03fa72aa-cf63-4dbd-be06-fea404a8cebd
test_queries
producesbeam/03fa72aa-cf63-4dbd-be06-fea404a8cebd
expected_outcomes
typebeam/4bc47b54-8640-442a-b990-773839dd8a41
ex:Function
labelbeam/4bc47b54-8640-442a-b990-773839dd8a41
generate_test_data
descriptionbeam/4bc47b54-8640-442a-b990-773839dd8a41
generates a set of test queries and their expected outcomes
calledBybeam/4bc47b54-8640-442a-b990-773839dd8a41
ex:main
parameterbeam/4bc47b54-8640-442a-b990-773839dd8a41
num_queries
returnsbeam/4bc47b54-8640-442a-b990-773839dd8a41
test_queries
returnsbeam/4bc47b54-8640-442a-b990-773839dd8a41
expected_outcomes
purposebeam/4bc47b54-8640-442a-b990-773839dd8a41
to create validation dataset
returnsMultiplebeam/4bc47b54-8640-442a-b990-773839dd8a41
test_queries
returnsMultiplebeam/4bc47b54-8640-442a-b990-773839dd8a41
expected_outcomes

References (2)

2 references
  1. ctx:claims/beam/03fa72aa-cf63-4dbd-be06-fea404a8cebd
    • full textbeam-chunk
      text/plain1 KBdoc:beam/03fa72aa-cf63-4dbd-be06-fea404a8cebd
      Show excerpt
      return test_queries, expected_outcomes # Tune the threshold def tune_threshold(test_queries, expected_outcomes, thresholds): best_threshold = None best_precision = 0 for threshold in thresholds: precision = evaluate
  2. ctx:claims/beam/4bc47b54-8640-442a-b990-773839dd8a41
    • full textbeam-chunk
      text/plain1 KBdoc:beam/4bc47b54-8640-442a-b990-773839dd8a41
      Show excerpt
      best_threshold = threshold return best_threshold, best_precision # Main function to run the optimization def main(): num_queries = 2500 test_queries, expected_outcomes = generate_test_data(num_queries) # De

See also

Keep researching

Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.