Skip to content
Skillpedia
Testing14k Β· #11157

validate

What it does

This skill checks the quality of pipelines, extracted data, graph structure and ontologies in Semantica. It is for people who want to find problems before they affect results.

When to use it

  • βœ“When you want to check a data pipeline setup before running it.
  • βœ“When you want to confirm that extracted entities and relations are of good quality.
  • βœ“When you need a checklist of errors and warnings for a graph or ontology.

Skill link

https://github.com/semantica-agi/semantica/blob/main/plugins/skills/validate/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/semantica-agi/semantica/blob/main/plugins/skills/validate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCan you check my data pipeline setup for errors and tell me which steps have missing dependencies?”

5 new skills a week. 1 minute to read.

How it works

The agent runs the matching validator for the target you choose, such as a pipeline, a single step, a graph or an ontology. It returns a checklist of errors and warnings, plus any missing dependencies between steps.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

/semantica:validate

Validate pipeline and graph quality. Usage: /semantica:validate <target> [options]

$ARGUMENTS = target type + optional config or path.


pipeline [--config '<json>']

Validate a full pipeline builder configuration.

from semantica.pipeline.pipeline_builder import PipelineBuilder
from semantica.pipeline.pipeline_validator import PipelineValidator

builder = PipelineBuilder()
if config_json:
    import json
    builder.build_pipeline(json.loads(config_json))

# PipelineBuilder has its own quick validate
quick = builder.validate_pipeline()  # returns Dict

# PipelineValidator gives full ValidationResult(valid, errors, warnings)
# Does NOT raise β€” always returns a result object
validator = PipelineValidator()
result = validator.validate(builder)

# Also check inter-step dependencies
deps = validator.check_dependencies(builder)

Output:

Pipeline Validation:  VALID βœ“  |  INVALID βœ—
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Steps:    N registered
Valid:    M steps

Errors (K):
  βœ— [step_name] <error message>

Warnings (J):
  ⚠ [step_name] <warning message>

Dependencies:
  βœ“ All dependencies resolved
  βœ— Step "<name>" depends on missing step "<dep>"

Result: <valid> β€” K errors, J warnings

step <step_name> [--type <type>] [--constraints '<json>']

Validate a single pipeline step.

from semantica.pipeline.pipeline_builder import PipelineBuilder
from semantica.pipeline.pipeline_validator import PipelineValidator
import json

builder = PipelineBuilder()
step = builder.get_step(step_name)

validator = PipelineValidator()
result = validator.validate_step(
    step=step,
    **json.loads(constraints_json) if constraints_json else {},
)

Output: same checklist format but scoped to a single step.


dependencies

Check all inter-step dependency resolution for the active pipeline.

from semantica.pipeline.pipeline_builder import PipelineBuilder
from semantica.pipeline.pipeline_validator import PipelineValidator

builder = PipelineBuilder()
validator = PipelineValidator()

deps = validator.check_dependencies(builder)

Output:

Dependency Graph:
  | Step | Depends On | Status |
  | step_A | β€” | βœ“ |
  | step_B | step_A | βœ“ |
  | step_C | step_X | βœ— MISSING |

Cycles detected: YES / NO
Missing steps:   [list]

extraction <file_path>

Validate extraction quality for a file β€” entity confidence, relation density, coverage.

from semantica.semantic_extract.extraction_validator import ExtractionValidator
from semantica.semantic_extract import (
    NamedEntityRecognizer,
    RelationExtractor,
)
from semantica.semantic_extract.cache import extraction_cache

extraction_cache.clear()  # prevent cross-invocation cache pollution

text = open(file_path).read()

ner = NamedEntityRecognizer()
rel = RelationExtractor()
entities = ner.extract(text)
relations = rel.extract(text)

validator = ExtractionValidator()
issues = validator.validate(entities, relations)

Output:

Extraction Validation: <file_path>
  Entities:    N extracted
  Relations:   M extracted
  Avg confidence: 0.83

Errors (K):
  βœ— <issue>

Warnings (J):
  ⚠ <warning>

Quality score: X/100

graph

Check schema conformance, referential integrity, and structural health.

from semantica.kg.graph_validator import GraphValidator
from semantica.context import ContextGraph

graph = ContextGraph()
validator = GraphValidator(graph)
result = validator.validate()

Output:

Graph Validation:
  Nodes:         N  |  Edges: M
  Node types:    K valid, J unknown
  
Referential integrity:
  βœ— Dangling edge: <source> β†’ <missing target>

Schema conformance:
  βœ— Node "<id>" missing required property "<prop>"

Result: N errors, M warnings

ontology

Validate ontology consistency and evaluate competency questions.

from semantica.ontology import OntologyValidator

validator = OntologyValidator()
result = validator.validate()
cq_results = validator.evaluate_competency_questions()

Output:

Ontology Validation:
  Classes:      N
  Properties:   M
  Consistent:   YES βœ“  |  NO βœ—

Competency questions:
  βœ“ "Can we find all instances of X?" β€” answered
  βœ— "Is Y a subclass of Z?" β€” failed: <reason>

Result: N consistency errors, M CQ failures

performance

Validate pipeline performance characteristics β€” bottlenecks, parallelism, and resource use.

from semantica.pipeline.pipeline_builder import Pipeli
FAQ

Will validation stop a run?

No. The validators return a result listing the issues rather than stopping the run.

What can be validated?

Pipelines, single steps, dependencies, extraction quality, graphs, ontologies and performance.

Is there a summary of the result?

Yes. Each check ends with a valid or invalid result and a count of errors and warnings.

Details

Original description by the author

Validate Semantica pipelines, extraction quality, graph schemas, and ontology consistency. Returns structured error/warning checklists. Uses PipelineValidator, PipelineBuilder.validate_pipeline(), GraphValidator, and OntologyValidator. Sub-commands: pipeline, step, dependencies, extraction, graph, ontology, performance.

repo: semantica-agi/semantica

Popularity

GitHub stars
14k
Ranking position
#11157
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills