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

Macro for authoring graphs using defined terms. #125

Open
damooo opened this issue Oct 13, 2022 · 1 comment
Open

Macro for authoring graphs using defined terms. #125

damooo opened this issue Oct 13, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@damooo
Copy link
Contributor

damooo commented Oct 13, 2022

A macro for authoring a graph/dataset, or their respective sources would be helpful in writing data, test cases, using pre defined terms. Say like following.

import rdf_vocabularies::ns;
let term1: Term = <>;
let terms2: Term = <>;

let graph: FastGraph = sophia::graph!(
   term1 ns::rdf::type_ ns::ldp::BasicContainer, ns::ldp::Resource;
       ns::solid::storageDescription term2.
);
@pchampin pchampin added the enhancement New feature or request label Oct 13, 2022
@pchampin pchampin added the help wanted Extra attention is needed label Dec 14, 2023
@pchampin
Copy link
Owner

This would be a really cool feature indeed. I gave it a try with macro_rules, and came to the conclusion that it can only be achieved with procedural macros...

@pchampin pchampin added this to the later milestone Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants