\acdhOeaw\util\metadataValidatorOntologyProperty

Represents an ontology property

Summary

Methods
Properties
Constants
__construct()
isObject()
fetchValues()
getDomain()
getRange()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$propQuery
$property
$object
$domain
$range
N/A

Properties

$propQuery

$propQuery : string

SPARQL query fetching property definition.

Type

string

$property

$property : string

Property URI

Type

string

$object

$object : boolean

Is property an owl:ObjectProperty?

Type

boolean

$domain

$domain : string

Property's rdfs:domain URI

Type

string

$range

$range : string

Property's rdfs:range URI

Type

string

Methods

__construct()

__construct(string  $property, \acdhOeaw\fedora\Fedora  $fedora) 

Creates RDF property object by fetching its definition form the repository.

Parameters

string $property

RDF property URI

\acdhOeaw\fedora\Fedora $fedora

repository connection object

Throws

\RuntimeException

isObject()

isObject() : boolean

Returns if the property is an owl:ObjectProperty

Returns

boolean

fetchValues()

fetchValues(Resource  $res) : array

Fetches matching property values from a given resource and splits them into two groups: values matching and not matching property type (rdfs:ObjectProperty => URI value, rdfs:DatatypeProperty => literal value)

Parameters

Resource $res

resource to fetch property values from

Returns

array

getDomain()

getDomain() : string

Returns property's rdfs:domain URI

Returns

string

getRange()

getRange() : string

Returns property's rdfs:range URI

Returns

string