RdfImporter

Methods Summary
public
# __construct( Omeka\Api\Manager $apiManager , Doctrine\ORM\EntityManager $entityManager )
public
# getMembers( string $strategy , string $namespaceUri , array $options = array ( ) )
Get the members of the specified vocabulary.
public
# import( string $strategy , array $vocab , array $options = array ( ) )
Import an RDF vocabulary, including its classes and properties.

see

self::getMembers()
public
# update( int $vocabId , array $diff )
Update a vocabulary given a diff.
public
# getDiff( string $strategy , string $namespaceUri , array $options = array ( ) )
Get the diff between a stored vocab and one represented in an RDF graph.

see

self::getMembers()
protected
# calculateDiff( array $from , array $to )
Calculate the difference between two vocabulary members. Only gets the diffs that we can process safely: add new members and update existing labels and comments. It doesn't get the diffs we cannot process safely: delete existing members or update existing local names.
protected
# isMember( EasyRdf_Resource $resource , string $namespaceUri )
Determine whether a resource is a local member of the vocabulary.
protected
# getLabel( EasyRdf_Resource $resource , string $default )
Get the label from an RDF resource.
protected
# getComment( EasyRdf_Resource $resource , array $commentProperty )
Get the comment from an RDF resource.
Properties Summary
protected Omeka\Stdlib\Omeka\Api\Manager $apiManager
# NULL
protected Doctrine\ORM\EntityManager $entityManager
# NULL
protected array $classTypes
Class types to import.
# array ( 0 => 'rdfs:Class', 1 => 'owl:Class', )
protected array $propertyTypes
The property types to import. Not included are the OWL DL properties owl:AnnotationProperty and owl:OntologyProperty because they typically serve internal annotative purposes.
# array ( 0 => 'rdf:Property', 1 => 'owl:ObjectProperty', 2 => 'owl:DatatypeProperty', 3 => 'owl:SymmetricProperty', 4 => 'owl:TransitiveProperty', 5 => 'owl:FunctionalProperty', 6 => 'owl:InverseFunctionalProperty', )