0.3.5 • Published 4 years ago

rdf-cytoscape v0.3.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

rdf-cytoscape

React component for rendering RDF graphs and datasets using n3.js and cytoscape.js

You can render either RDF Datasets or RDF Graphs. Datasets use react-panelgroup to split up the different graphs. Both elements take an N3Store as a required prop; for Graphs you just specify the graph name that you want to element to render.

import Graph from "rdf-cytoscape/lib/graph"
import Dataset from "rdf-cytoscape"
interface GraphProps {
	store: N3Store
	graph: string
	focus?: string
	context?: {}
	onSelect?(focus: string): void
	onUnselect?(focus: string): void
	onMouseOver?(focus: string): void
	onMouseOut?(focus: string): void
	onMount?(cy: cytoscape.Core): void
	onDestroy?(): void
}

interface DatasetProps {
	context: {}
	store: N3Store
	focus: string
	onFocus(focus: string): void
}

Either way you need to include rdf-cytoscape/rdf-cytoscape.css in your HTML somewhere, and you need to add the rdf-cytoscape CSS class to the immediate parent.

0.3.5

4 years ago

0.3.2

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago