xdi2 core

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

XDI2

Clone this wiki locally

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>/&/\"markus@danubetech.com\""));
graph.setStatement(XDIStatement.create("=markus/#friend/=animesh"));

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

Examples

For examples, see the following Github repository: