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 */ 014@Ignore // TODO FIX THESE TESTS 015public class OpenAnnotationIT extends AbstractIntegrationRdfIT { 016 @Test 017 public void testOpenAnnotationChoice() { 018 final String s = "@prefix content: <http://www.w3.org/2011/content#> .\n" + 019 "@prefix dc11: <http://purl.org/dc/elements/1.1/> .\n" + 020 "@prefix dcmitype: <http://purl.org/dc/dcmitype/> .\n" + 021 "@prefix openannotation: <http://www.w3.org/ns/oa#> .\n" + 022 "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" + 023 "@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n" + 024 "\n" + 025 "<> a openannotation:Annotation;\n" + 026 " openannotation:hasBody [\n" + 027 " a openannotation:Choice;\n" + 028 " openannotation:default [\n" + 029 " a content:ContentAsText,\n" + 030 " dcmitype:Text;\n" + 031 " dc11:language \"en\";\n" + 032 " content:chars \"I love this English!\"\n" + 033 " ];\n" + 034 " openannotation:item [\n" + 035 " a content:ContentAsText,\n" + 036 " dcmitype:Text;\n" + 037 " dc11:language \"fr\";\n" + 038 " content:chars \"Je l'aime en Francais!\"\n" + 039 " ]\n" + 040 " ];\n" + 041 " openannotation:hasTarget <http://purl.stanford.edu/kq131cs7229>;\n" + 042 " openannotation:motivatedBy openannotation:commenting ."; 043 createLDPRSAndCheckResponse(getRandomUniqueId(), s); 044 } 045}