001/* 002 * Copyright 2015 DuraSpace, Inc. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.fcrepo.integration.rdf; 017 018import org.junit.Ignore; 019import org.junit.Test; 020 021/** 022 * @author cabeer 023 * @author ajs6f 024 */ 025public class BibframeIT extends AbstractIntegrationRdfIT { 026 027 @Ignore("Test fails when run from non-UTF8 platform (Windows). Character encoding fix pending: FCREPO-1979") 028 @Test 029 public void testBibframe() { 030 final String bibframe = "@prefix bf: <http://bibframe.org/vocab/> .\n" + 031 "@prefix madsrdf: <http://www.loc.gov/mads/rdf/v1#> .\n" + 032 "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" + 033 "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n" + 034 "@prefix relators: <http://id.loc.gov/vocabulary/relators/> .\n" + 035 "@prefix xml: <http://www.w3.org/XML/1998/namespace> .\n" + 036 "@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n" + 037 "\n" + 038 "<> a bf:Work ;\n" + 039 " bf:hasInstance [ a bf:Electronic,\n" + 040 " bf:Instance ;\n" + 041 " bf:instanceOf <http://id.loc.gov/resources/bibs/15716616> ;\n" + 042 " bf:label \"Electronic Resource\" ;\n" + 043 " bf:uri <http://www.soaw.org/new/newsletter.php> ],\n" + 044 " [ a bf:Instance,\n" + 045 " bf:Serial ;\n" + 046 " bf:derivedFrom <http://id.loc.gov/resources/bibs/15716616.marcxml.xml> ;\n" + 047 " bf:instanceOf <http://id.loc.gov/resources/bibs/15716616> ;\n" + 048 " bf:instanceTitle [ a bf:Title ] ;\n" + 049 " bf:issn [ a bf:Identifier ;\n" + 050 " bf:identifierAssigner \"1\" ;\n" + 051 " bf:identifierScheme \"issn\" ;\n" + 052 " bf:identifierValue \"1949-3223\" ] ;\n" + 053 " bf:keyTitle [ a bf:Title ] ;\n" + 054 " bf:modeOfIssuance \"serial\" ;\n" + 055 " bf:note \"\\\"Newspaper of the movement to close the School of the Americas.\\\"\",\n" + 056 " \"Latest issue consulted: Vol. 14, no. 1 (winter/spring 2009).\",\n" + 057 " \"Title from caption.\" ;\n" + 058 " bf:otherPhysicalFormat [ a bf:Instance ;\n" + 059 " bf:title \"¡Presente!\" ] ;\n" + 060 " bf:publication [ a bf:Provider ;\n" + 061 " bf:providerDate \"[2006]-\" ;\n" + 062 " bf:providerName [ a bf:Organization ;\n" + 063 " bf:label \"SOA Watch\" ] ;\n" + 064 " bf:providerPlace [ a bf:Place ;\n" + 065 " bf:label \"Washington, D.C. \" ] ] ;\n" + 066 " bf:serialFirstIssue \"Vol. 11, issue 3 (fall 2006)\" ;\n" + 067 " bf:stockNumber [ a bf:Identifier ;\n" + 068 " bf:identifierAssigner \"SOA Watch, P.O. Box 4566, Washington, DC 20017\" ;\n" + 069 " bf:identifierScheme \"stockNumber\" ] ] ."; 070 071 createLDPRSAndCheckResponse(getRandomUniqueId(), bibframe); 072 } 073 074}