Today i found a way to convert my RDF4J model into a json-ld representation that looks promising
Today i found a way to be more compatible. titanium seems to do it’s job well!
Converting my RDF Model into the compact format like that:
import java.io.IOException;
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.rio.RDFFormat;
import org.eclipse.rdf4j.rio.Rio;
import org.springframework.core.io.ClassPathResource;
import com.apicatalog.jsonld.JsonLd…
I also have this cursed thing that passes all tests except some relative URI edge cases
Are you internally working with RDF ?
No, I’m converting json to my “local context”. I only use the RDF stuff for LD-signatures.
Don’t know the relevancy to both of you, but just FYI: yesterday AtomGraph was among the presenters of the NGI Linked Data webinar and they have this java-based JSON2RDF library: