Re: Idiom for creating test instances of Node, Triple, etc?

2022-02-15 Thread Andy Seaborne
There are the functions in SSE. e.g. Node SSE.parseNode(string) It has built-in prefixes so ":s" works. SSE.parseNode(":s") -> NodeFactory.createURI("http://example/s;); Triples are 3-tuples: "(:s :p :o)" or "(triple :s :p :o)" RDF-star supported SSE.parseNode("(qtriple :s :p :o)"); or <<>>

Idiom for creating test instances of Node, Triple, etc?

2022-02-15 Thread Richard Cyganiak
Hi list, Is there a preferred way to create instances of Node, Triple and Graph (small) for Java-based automated tests? Our product's test suite uses many different idioms for this, and I want to introduce more consistency, but don't want to find out later that there's a better idiom I wasn't