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

property paths and annotations #133

Open
pfps opened this issue Dec 6, 2023 · 3 comments
Open

property paths and annotations #133

pfps opened this issue Dec 6, 2023 · 3 comments

Comments

@pfps
Copy link
Contributor

pfps commented Dec 6, 2023

How can one combine property paths and annotations. For example, it would be nice to be able to make a query like:

?sub rdfs:subclassOf* {| wikibase:rank wikibase:PreferredRank |} ?super .

@pfps pfps added the needs discussion Proposed for discussion in an upcoming meeting label Dec 6, 2023
@TallTed
Copy link
Member

TallTed commented Dec 7, 2023

I don't understand your query, reproduced here with codefence, to help with clarity --

?sub rdfs:subclassOf {| wikibase:Rank wikibase:PreferredRank |} ?super .

I don't see any property paths.

I see nonsensical non-annotation ({| predicate1 predicate2 |}) on another predicate (rdfs:subclassOf).

Perhaps some additional verbiage about what you're wishing for (and why)? This should also provide a seed for the use case that should produce relevant requirements toward incorporation in relevant doc(s).

@pfps
Copy link
Contributor Author

pfps commented Dec 7, 2023

Oops, I forgot the * and wikibase:Rank should be wikibase:rank.

Now fixed.

@TallTed
Copy link
Member

TallTed commented Dec 7, 2023

I think you also lowercased an uppercase C in rdfs:subClassOf.

I think this would be a better construction --

?sub rdfs:subClassOf* ?super {| wikibase:rank wikibase:PreferredRank |} .

because annotations are applied to full s p o statements, not to s p fragments.

@pfps pfps removed the needs discussion Proposed for discussion in an upcoming meeting label Jan 25, 2024
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

2 participants