Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests for generalized RDF #149

Open
rubensworks opened this issue Oct 23, 2024 · 3 comments
Open

Tests for generalized RDF #149

rubensworks opened this issue Oct 23, 2024 · 3 comments

Comments

@rubensworks
Copy link
Member

As suggested by @niklasl in #144 (review), we could consider adding SPARQL and RDF (syntax) tests for generalized RDF.

AFAIK, there are no such tests yet for previous versions.

Since generalized RDF is non-normative, I don't see a big need for adding such tests.
But I think this deserves some discussion at least.

@afs
Copy link
Contributor

afs commented Oct 24, 2024

@niklasl - do you mean full generalized RDF or just that SPARQL allows the same range of RDF terms in subject and object positions because of reverse paths.

Generalized RDF includes literals as properties. SPARQL query does not cover that.

https://www.w3.org/TR/sparql12-query/#sparqlTriplePatterns

@niklasl
Copy link

niklasl commented Oct 24, 2024

@afs The latter, what SPARQL allows.

As you've noted before, a name and definition for that "lesser generalized RDF" may be useful. "Symmetric RDF"? 🤔

(Apart from reverse paths (like "2024" ^:published ?x ), a theoretical case is using SPARQL as a "poor man's reasoner", to manifest e.g. "2024"^^xsd:gYear rdf:type xsd:gYear, if supported by the implementation. Granted, that case might require more of the generalized form, e.g. blank nodes as predicates. But to be clear, I am only suggesting noting what SPARQL already allows for.)

@afs
Copy link
Contributor

afs commented Nov 2, 2024

w3c/rdf-concepts#111 suggests putting the terminology (non-normatively) in RDF Concepts.

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

No branches or pull requests

3 participants