PHP Class ApiPlatform\SchemaGenerator\GoodRelationsBridge

Author: Kévin Dunglas ([email protected])
Afficher le fichier Open project: api-platform/schema-generator Class Usage Examples

Protected Properties

Свойство Type Description
$datatypePropertiesTable array
$objectPropertiesTable array
$relations SimpleXMLElement[]

Méthodes publiques

Méthode Description
__construct ( array $relations )
exist ( string $id ) : boolean Checks if a property exists in GoodRelations.
extractCardinality ( string $id ) : string | boolean Extracts cardinality from the Good Relations OWL.

Private Methods

Méthode Description
convertPropertyId ( string $id ) : string Converts Schema.org's id to Good Relations id.
getPropertyUrl ( string $id ) : string Gets a property URL.

Method Details

__construct() public méthode

public __construct ( array $relations )
$relations array

exist() public méthode

Checks if a property exists in GoodRelations.
public exist ( string $id ) : boolean
$id string
Résultat boolean

extractCardinality() public méthode

Extracts cardinality from the Good Relations OWL.
public extractCardinality ( string $id ) : string | boolean
$id string
Résultat string | boolean

Property Details

$datatypePropertiesTable protected_oe static_oe property

protected static array $datatypePropertiesTable
Résultat array

$objectPropertiesTable protected_oe static_oe property

protected static array $objectPropertiesTable
Résultat array

$relations protected_oe property

protected SimpleXMLElement[] $relations
Résultat SimpleXMLElement[]