server/src/tests/Libraries/Mappers/CocoonSoundRdfMapperTest.php
changeset 526 cdaf9dfb5dfd
parent 152 dd6b3adde73b
equal deleted inserted replaced
525:c06db7aa1b10 526:cdaf9dfb5dfd
    80             <http://purl.org/dc/elements/1.1/rights> "Copyright (c) 2012 Université d'Orléans/LLL" ;
    80             <http://purl.org/dc/elements/1.1/rights> "Copyright (c) 2012 Université d'Orléans/LLL" ;
    81             <http://purl.org/dc/elements/1.1/title> "ESLO1: entretien 019"@fr ;
    81             <http://purl.org/dc/elements/1.1/title> "ESLO1: entretien 019"@fr ;
    82             <http://purl.org/dc/terms/alternative> "ESLO1: entretien 019 alt"@fr ;
    82             <http://purl.org/dc/terms/alternative> "ESLO1: entretien 019 alt"@fr ;
    83             <http://purl.org/dc/terms/isFormatOf> <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019_22km.wav> , <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019.mp3> ;
    83             <http://purl.org/dc/terms/isFormatOf> <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019_22km.wav> , <http://cocoon.huma-num.fr/data/eslo/ESLO1_ENT_019.mp3> ;
    84             <http://purl.org/dc/terms/accessRights> " Freely available for non-commercial use" ;
    84             <http://purl.org/dc/terms/accessRights> " Freely available for non-commercial use" ;
    85             <http://purl.org/dc/terms/license> <http://creativecommons.org/licenses/by-nc-sa/3.0/> ;
    85             <http://purl.org/dc/terms/license> <http://creativecommons.org/licenses/by-nc-nd/2.5/> ;
    86             <http://purl.org/dc/terms/isPartOf> <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-COLLECTION_LANGUESDEFRANCE> , <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-COLLECTION_ESLO1> ;
    86             <http://purl.org/dc/terms/isPartOf> <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-COLLECTION_LANGUESDEFRANCE> , <http://purl.org/poi/crdo.vjf.cnrs.fr/crdo-COLLECTION_ESLO1> ;
    87             <http://purl.org/dc/terms/extent> "PT0H47M16S" ;
    87             <http://purl.org/dc/terms/extent> "PT0H47M16S" ;
    88             <http://purl.org/dc/terms/created> "1969-04-11"^^<http://purl.org/dc/terms/W3CDTF> ;
    88             <http://purl.org/dc/terms/created> "1969-04-11"^^<http://purl.org/dc/terms/W3CDTF> ;
    89             <http://purl.org/dc/terms/spatial> "FR"^^<http://purl.org/dc/terms/ISO3166> , <http://vocab.getty.edu/tgn/7008337> , "France, Centre, Loiret, Orléans"@fr ;
    89             <http://purl.org/dc/terms/spatial> "FR"^^<http://purl.org/dc/terms/ISO3166> , <http://vocab.getty.edu/tgn/7008337> , "France, Centre, Loiret, Orléans"@fr ;
    90             <http://crdo.risc.cnrs.fr/schemas/master> <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> ;
    90             <http://crdo.risc.cnrs.fr/schemas/master> <http://cocoon.huma-num.fr/data/eslo/masters/ESLO1_ENT_019.wav> ;
   233         $rights = $rightsNodes[0];
   233         $rights = $rightsNodes[0];
   234 
   234 
   235         $this->assertTrue($rights instanceof Resource);
   235         $this->assertTrue($rights instanceof Resource);
   236 
   236 
   237         $this->assertEquals("http://creativecommons.org/licenses/by-nc-sa/4.0/", $rights->getUri(), "right must be CC-BY-NC");
   237         $this->assertEquals("http://creativecommons.org/licenses/by-nc-sa/4.0/", $rights->getUri(), "right must be CC-BY-NC");
       
   238     }
       
   239 
       
   240     /**
       
   241      * test rights on no-format
       
   242      *
       
   243      * @return void
       
   244      */
       
   245     public function testRightsOtherLicense() {
       
   246         $rightsNodes = $this->resGraphes['NO-FORMAT']->all($this->testGraphUri, 'edm:rights');
       
   247 
       
   248         $this->assertCount(1, $rightsNodes, "One edm:right");
       
   249 
       
   250         $rights = $rightsNodes[0];
       
   251 
       
   252         $this->assertTrue($rights instanceof Resource);
       
   253 
       
   254         $this->assertEquals("http://creativecommons.org/licenses/by-nc-nd/4.0/", $rights->getUri(), "right must be CC-BY-NC");
   238     }
   255     }
   239 
   256 
   240     /**
   257     /**
   241      * Test that the return graph has one ore:Aggregation resource
   258      * Test that the return graph has one ore:Aggregation resource
   242      *
   259      *