class Arc2JsonLdConverter

Methods

static 
triplesToQuads(array $triples)

Converts an array of ARC2 triples into an array of RDF quads in JsonLD library format.

static 
indexToQuads(array $index)

Converts an ARC2 index into an array of RDF quads in JsonLD library format.

static 
quadsToTriples(array $quads)

Converts an array of RDF quads in JsonLD library format into an array of ARC2 triples.

static 
quadsToIndex(array $quads)

Converts an array of RDF quads in JsonLD library format into an ARC2 index.

static 
jsonLdToTriples(string|array|object $jsonLd)

Converts any JsonLD into an array of ARC2 triples.

static 
jsonLdToIndex(string|array|object $jsonLd)

Converts any JsonLD into an ARC2 index.

Details

at line 19
static triplesToQuads(array $triples)

Converts an array of ARC2 triples into an array of RDF quads in JsonLD library format.

Parameters

array $triples ARC2 triples

at line 35
static indexToQuads(array $index)

Converts an ARC2 index into an array of RDF quads in JsonLD library format.

Parameters

array $index ARC2 index

at line 57
static quadsToTriples(array $quads)

Converts an array of RDF quads in JsonLD library format into an array of ARC2 triples.

Parameters

array $quads JsonLD quads

at line 81
static quadsToIndex(array $quads)

Converts an array of RDF quads in JsonLD library format into an ARC2 index.

Parameters

array $quads JsonLD quads

at line 89
static jsonLdToTriples(string|array|object $jsonLd)

Converts any JsonLD into an array of ARC2 triples.

Parameters

string|array|object $jsonLd JsonLD content

at line 98
static jsonLdToIndex(string|array|object $jsonLd)

Converts any JsonLD into an ARC2 index.

Parameters

string|array|object $jsonLd JsonLD content