| @@ 80-90 (lines=11) @@ | ||
| 77 | * @param \Wordlift_Sparql_Service $sparql_service |
|
| 78 | * @param string $dataset_uri |
|
| 79 | */ |
|
| 80 | public function __construct( $entity_type_service, $entity_service, $schema_service, $sparql_service, $dataset_uri ) { |
|
| 81 | ||
| 82 | $this->log = Wordlift_Log_Service::get_logger( 'Wordlift_Import_Service' ); |
|
| 83 | ||
| 84 | $this->entity_type_service = $entity_type_service; |
|
| 85 | $this->entity_service = $entity_service; |
|
| 86 | $this->schema_service = $schema_service; |
|
| 87 | $this->sparql_service = $sparql_service; |
|
| 88 | $this->dataset_uri = $dataset_uri; |
|
| 89 | ||
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * Handle the `wp_import_post_meta` filter by checking the `entity_url` meta. |
|
| @@ 85-96 (lines=12) @@ | ||
| 82 | * @param \Wordlift_Schema_Service $schema_service The {@link Wordlift_Schema_Service} instance. |
|
| 83 | * @param \Wordlift_Sparql_Service $sparql_service The {@link Wordlift_Sparql_Service} instance. |
|
| 84 | */ |
|
| 85 | public function __construct( $entity_service, $entity_type_service, $schema_service, $sparql_service ) { |
|
| 86 | ||
| 87 | $this->log = Wordlift_Log_Service::get_logger( 'Wordlift_Linked_Data_Service' ); |
|
| 88 | ||
| 89 | $this->entity_service = $entity_service; |
|
| 90 | $this->entity_type_service = $entity_type_service; |
|
| 91 | $this->schema_service = $schema_service; |
|
| 92 | $this->sparql_service = $sparql_service; |
|
| 93 | ||
| 94 | self::$instance = $this; |
|
| 95 | ||
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * Get the singleton instance of {@link Wordlift_Linked_Data_Service}. |
|