Skip to content
Markus Sabadello edited this page Feb 6, 2017 · 42 revisions

Implementation of the XDI graph model and several higher-level features [.jar]

Topics

Components

Maven Dependency

<dependency>
	<groupId>xdi2</groupId>
	<artifactId>xdi2-core</artifactId>
	<version>${xdi2-version}</version>
	<scope>compile</scope>
</dependency>

Quickstart

Graph graph = MemoryGraphFactory.getInstance().openGraph();
graph.setStatement(XDIStatement.create("=markus<#email>/&/\"[email protected]\""));
graph.setStatement(XDIStatement.create("=markus/#friend/=animesh"));

System.out.println(graph.toString("JXD", null));

Examples

For examples, see the following Github repository:

Clone this wiki locally