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 GeonameIT extends AbstractIntegrationRdfIT {
016    @Test
017    public void testRoundtripGeonamesRdf() {
018        final String s = "@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n" +
019                "@prefix cc: <http://creativecommons.org/ns#> .\n" +
020                "@prefix dcterms: <http://purl.org/dc/terms/> .\n" +
021                "@prefix foaf: <http://xmlns.com/foaf/0.1/> .\n" +
022                "@prefix gn: <http://www.geonames.org/ontology#> .\n" +
023                "@prefix owl: <http://www.w3.org/2002/07/owl#> .\n" +
024                "@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n" +
025                "@prefix wgs84_pos: <http://www.w3.org/2003/01/geo/wgs84_pos#> .\n" +
026                "\n" +
027                "<>\n" +
028                "    gn:alternateName \"Aebura\"@la, \"Ambrun\"@oc, \"Eburodunum\"@la ;\n" +
029                "    gn:countryCode \"FR\" ;\n" +
030                "    gn:featureClass gn:P ;\n" +
031                "    gn:featureCode <http://www.geonames.org/ontology#P.PPL> ;\n" +
032                "    gn:locationMap <http://www.geonames.org/3020251/embrun.html> ;\n" +
033                "    gn:name \"Embrun\" ;\n" +
034                "    gn:nearbyFeatures <http://sws.geonames.org/3020251/nearby.rdf> ;\n" +
035                "    gn:parentADM1 <http://sws.geonames.org/2985244/> ;\n" +
036                "    gn:parentADM2 <http://sws.geonames.org/3013738/> ;\n" +
037                "    gn:parentADM3 <http://sws.geonames.org/3016701/> ;\n" +
038                "    gn:parentADM4 <http://sws.geonames.org/6446638/> ;\n" +
039                "    gn:parentCountry <http://sws.geonames.org/3017382/> ;\n" +
040                "    gn:parentFeature <http://sws.geonames.org/6446638/> ;\n" +
041                "    gn:population \"7069\" ;\n" +
042                "    gn:postalCode \"05200\", \"05201 CEDEX\", \"05202 CEDEX\", \"05208 CEDEX\", \"05209 CEDEX\" ;\n" +
043                "    gn:wikipediaArticle <http://fr.wikipedia.org/wiki/Embrun_%28Hautes-Alpes%29> ;\n" +
044                "    a gn:Feature ;\n" +
045                "    rdfs:isDefinedBy <#about.rdf> ;\n" +
046                "    wgs84_pos:lat \"44.56387\" ;\n" +
047                "    wgs84_pos:long \"6.49526\" .\n" +
048                "\n" +
049                "<#about.rdf>\n" +
050                "    cc:attributionName \"GeoNames\"^^<http://www.w3.org/2001/XMLSchema#string> ;\n" +
051                "    cc:attributionURL <http://sws.geonames.org/3020251/> ;\n" +
052                "    cc:license <http://creativecommons.org/licenses/by/3.0/> ;\n" +
053                "    dcterms:created \"2006-01-15\"^^<http://www.w3.org/2001/XMLSchema#date> ;\n" +
054                "    dcterms:modified \"2012-03-30\"^^<http://www.w3.org/2001/XMLSchema#date> ;\n" +
055                "    a foaf:Document ;\n" +
056                "    foaf:primaryTopic <http://sws.geonames.org/3020251/> .";
057        createLDPRSAndCheckResponse(getRandomUniqueId(), s);
058
059    }
060}