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