rdf-elements

The rdf-elements package provides Web Components based on Lit to handle RDF/JS data.

RdfEditor

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.

Example

RdfNetwork

The RdfNetwork component wraps a Cytoscape.js network visualization and translates RDF/JS objects to Cytoscape's data structures.

Example

RdfResource

The RdfResource component renders the given RDF/JS data in two-column tables, with one table per subject.

Example

RdfTable

The RdfTable component renders the given RDF/JS data in a three-column table for subject, predicate, and object.

Example

SparqlEditor

The SparqlEditor component wraps a CodeMirror editor instance. The SPARQL syntax is validated with SPARQL.js.

Example