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.
);
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...
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.