The rdf-elements
package provides Web Components based on Lit to handle RDF/JS data.
The RdfEditor
component wraps a CodeMirror editor instance with an API designed to simplify the processing of RDF/JS objects.
The data is parsed and validated by the parsers of the @rdfjs/formats package.
If a DatasetCore object is given, the pretty print serializers of the same package are used.
The RdfNetwork
component wraps a Cytoscape.js network visualization and translates RDF/JS objects to Cytoscape's data structures.
The RdfResource
component renders the given RDF/JS data in two-column tables, with one table per subject.
The RdfTable
component renders the given RDF/JS data in a three-column table for subject, predicate, and object.
The SparqlEditor
component wraps a CodeMirror editor instance.
The SPARQL syntax is validated with SPARQL.js.