Documentation

DatasetExtractors
in package

Provides shorthand methods for extracting values from a Dataset without a need to bother with iterators

Tags
author

zozlak

Table of Contents

getGraph()  : NamedNode|BlankNode|DefaultGraph|null
getGraphs()  : array<string|int, mixed>
getGraphUri()  : string|null
getGraphUris()  : array<string|int, string>
getLiteral()  : Literal|null
getLiterals()  : array<string|int, Literal>
getLiteralValue()  : mixed
getLiteralValues()  : array<string|int, mixed>
getLiteralValuesByLang()  : array<string|int, mixed>
Returns an array of all object literal values with literals' language taken as an array keys and literals' string value taken as values.
getObject()  : Term|null
getObjectDatatype()  : string|null
getObjectLang()  : string|null
getObjects()  : array<string|int, Term>
getObjectValue()  : mixed
getObjectValues()  : array<string|int, mixed>
getPredicate()  : NamedNode|null
getPredicates()  : array<string|int, NamedNode>
getPredicateUri()  : string|null
getPredicateUris()  : array<string|int, string>
getSubject()  : Term|null
getSubjects()  : array<string|int, Term>
getSubjectValue()  : mixed
getSubjectValues()  : array<string|int, mixed>
filter()  : Dataset
getValues()  : array<string|int, mixed>

Methods

getLiteralValuesByLang()

Returns an array of all object literal values with literals' language taken as an array keys and literals' string value taken as values.

public static getLiteralValuesByLang(DatasetListQuadParts $dataset[, QuadCompare|QuadIterator|callable $filter = null ]) : array<string|int, mixed>

If there are many object literals with the same language tag, the last one is stored under the given language key.

No-language tag object literal value is stored under the empty string key.

Parameters
$dataset : DatasetListQuadParts
$filter : QuadCompare|QuadIterator|callable = null
Return values
array<string|int, mixed>

Search results