equal
deleted
inserted
replaced
432 * |
432 * |
433 * @return void |
433 * @return void |
434 */ |
434 */ |
435 public function testWebResources() { |
435 public function testWebResources() { |
436 |
436 |
437 $resources = $this->resGraphes['BASE']->allOfType('edm:WebResources'); |
437 $resources = $this->resGraphes['BASE']->allOfType('edm:WebResource'); |
438 |
438 |
439 $this->assertCount(3, $resources, "Must found three webresources"); |
439 $this->assertCount(3, $resources, "Must found three webresource"); |
440 |
440 |
441 $aggregation = $this->resGraphes['BASE']->resource(CocoonSoundRdfMapperTest::TEST_GRAPH_URI); |
441 $aggregation = $this->resGraphes['BASE']->resource(CocoonSoundRdfMapperTest::TEST_GRAPH_URI); |
442 |
442 |
443 foreach ($resources as $wres) { |
443 foreach ($resources as $wres) { |
444 $mimetypes = $wres->all($this->resGraphes['BASE']->resource('http://purl.org/dc/elements/1.1/format')); |
444 $mimetypes = $wres->all($this->resGraphes['BASE']->resource('http://purl.org/dc/elements/1.1/format')); |
471 * |
471 * |
472 * @return void |
472 * @return void |
473 */ |
473 */ |
474 public function testWebResourcesDate() { |
474 public function testWebResourcesDate() { |
475 |
475 |
476 $resources = $this->resGraphes['BASE']->allOfType('edm:WebResources'); |
476 $resources = $this->resGraphes['BASE']->allOfType('edm:WebResource'); |
477 |
477 |
478 foreach ($resources as $wres) { |
478 foreach ($resources as $wres) { |
479 $this->assertFalse($wres->hasProperty("http://purl.org/dc/terms/available"),"web resource must not have http://purl.org/dc/terms/available"); |
479 $this->assertFalse($wres->hasProperty("http://purl.org/dc/terms/available"),"web resource must not have http://purl.org/dc/terms/available"); |
480 $this->assertFalse($wres->hasProperty("http://purl.org/dc/terms/modified"),"web resource must not have http://purl.org/dc/terms/modified"); |
480 $this->assertFalse($wres->hasProperty("http://purl.org/dc/terms/modified"),"web resource must not have http://purl.org/dc/terms/modified"); |
481 $this->assertTrue($wres->hasProperty("http://purl.org/dc/terms/issued"), "Must have http://purl.org/dc/terms/issued"); |
481 $this->assertTrue($wres->hasProperty("http://purl.org/dc/terms/issued"), "Must have http://purl.org/dc/terms/issued"); |