001/* 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 */ 006package org.fcrepo.integration.rdf; 007 008import org.junit.Ignore; 009import org.junit.Test; 010 011/** 012 * @author cabeer 013 * @author ajs6f 014 */ 015@Ignore // TODO FIX THESE TESTS 016public class BibframeIT extends AbstractIntegrationRdfIT { 017 018 @Test 019 public void testBibframe() { 020 final String bibframe = "@prefix bf: <http://bibframe.org/vocab/> .\n" + 021 "@prefix madsrdf: <http://www.loc.gov/mads/rdf/v1#> .\n" + 022 "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" + 023 "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n" + 024 "@prefix relators: <http://id.loc.gov/vocabulary/relators/> .\n" + 025 "@prefix xml: <http://www.w3.org/XML/1998/namespace> .\n" + 026 "@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n" + 027 "\n" + 028 "<> a bf:Work ;\n" + 029 " bf:hasInstance [ a bf:Electronic,\n" + 030 " bf:Instance ;\n" + 031 " bf:instanceOf <http://id.loc.gov/resources/bibs/15716616> ;\n" + 032 " bf:label \"Electronic Resource\" ;\n" + 033 " bf:uri <http://www.soaw.org/new/newsletter.php> ],\n" + 034 " [ a bf:Instance,\n" + 035 " bf:Serial ;\n" + 036 " bf:derivedFrom <http://id.loc.gov/resources/bibs/15716616.marcxml.xml> ;\n" + 037 " bf:instanceOf <http://id.loc.gov/resources/bibs/15716616> ;\n" + 038 " bf:instanceTitle [ a bf:Title ] ;\n" + 039 " bf:issn [ a bf:Identifier ;\n" + 040 " bf:identifierAssigner \"1\" ;\n" + 041 " bf:identifierScheme \"issn\" ;\n" + 042 " bf:identifierValue \"1949-3223\" ] ;\n" + 043 " bf:keyTitle [ a bf:Title ] ;\n" + 044 " bf:modeOfIssuance \"serial\" ;\n" + 045 " bf:note \"\\\"Newspaper of the movement to close the School of the Americas.\\\"\",\n" + 046 " \"Latest issue consulted: Vol. 14, no. 1 (winter/spring 2009).\",\n" + 047 " \"Title from caption.\" ;\n" + 048 " bf:otherPhysicalFormat [ a bf:Instance ;\n" + 049 " bf:title \"¡Presente!\" ] ;\n" + 050 " bf:publication [ a bf:Provider ;\n" + 051 " bf:providerDate \"[2006]-\" ;\n" + 052 " bf:providerName [ a bf:Organization ;\n" + 053 " bf:label \"SOA Watch\" ] ;\n" + 054 " bf:providerPlace [ a bf:Place ;\n" + 055 " bf:label \"Washington, D.C. \" ] ] ;\n" + 056 " bf:serialFirstIssue \"Vol. 11, issue 3 (fall 2006)\" ;\n" + 057 " bf:stockNumber [ a bf:Identifier ;\n" + 058 " bf:identifierAssigner \"SOA Watch, P.O. Box 4566, Washington, DC 20017\" ;\n" + 059 " bf:identifierScheme \"stockNumber\" ] ] ."; 060 061 createLDPRSAndCheckResponse(getRandomUniqueId(), bibframe); 062 } 063 064}