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()  : NamedNodeInterface|BlankNodeInterface|DefaultGraphInterface|null
getGraphs()  : array<string|int, mixed>
getGraphUri()  : string|null
getGraphUris()  : array<string|int, string>
getLiteral()  : LiteralInterface|null
getLiterals()  : array<string|int, LiteralInterface>
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()  : TermInterface|null
getObjectDatatype()  : string|null
getObjectLang()  : string|null
getObjects()  : array<string|int, TermInterface>
getObjectValue()  : mixed
getObjectValues()  : array<string|int, mixed>
getPredicate()  : NamedNodeInterface|null
getPredicates()  : array<string|int, NamedNodeInterface>
getPredicateUri()  : string|null
getPredicateUris()  : array<string|int, string>
getSubject()  : TermInterface|null
getSubjects()  : array<string|int, TermInterface>
getSubjectValue()  : mixed
getSubjectValues()  : array<string|int, mixed>
getSingle()  : QuadInterface|null
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(DatasetListQuadPartsInterface $dataset[, QuadCompareInterface|QuadIteratorInterface|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 : DatasetListQuadPartsInterface
$filter : QuadCompareInterface|QuadIteratorInterface|callable = null
Tags
Return values
array<string|int, mixed>

        

Search results