Skip to content

Add ability to specify SPARQL queries on classes - #213

Open
JPEWdev wants to merge 2 commits into
spdx:mainfrom
JPEWdev:sparql
Open

Add ability to specify SPARQL queries on classes#213
JPEWdev wants to merge 2 commits into
spdx:mainfrom
JPEWdev:sparql

Conversation

@JPEWdev

@JPEWdev JPEWdev commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Adds the ability for Properties, Classes, and Vocabularies to specify SPARQL queries that will be attached to validate a class then they are used. See spdx/spdx-3-model#1425 for an example

@JPEWdev

JPEWdev commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@zvr

@JPEWdev

JPEWdev commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

The use of \ to allow continuation lines works fine, but it's not actually valid Markdown, so we may need to consider something else. Perhaps if the value starts with a backtick it can be continued across multiple lines?

JPEWdev added 2 commits July 31, 2026 11:01
Markdown allows list items to span multiple lines, as long as as each
subsequent non-blank line are indented at least the same amount as the
first line. Support this syntax when parsing nested list sections by
aggregating the value across multiple lines that follow this rule. The
key must still be on the same line as the "-"

For example, this is now allowed:

- foo
  - bar:
    Still part of bar
  - baz: Part of baz
Adds a section of SPARQL queries to classes, vocabularies, and
properties. If any of these are present, they will be attached as
validation queries to the class in which they are bound.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant