Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong output GML with airport example #9

Open
alegrm opened this issue Oct 16, 2015 · 1 comment
Open

Wrong output GML with airport example #9

alegrm opened this issue Oct 16, 2015 · 1 comment
Labels

Comments

@alegrm
Copy link
Member

alegrm commented Oct 16, 2015

Hi, I'm testing the XML transformations with GML, and I used the airport.gml file, but the output RDF has in the rdf:description all extracted points. Probably is something I should change in the xslt files?

    <?xml version="1.0" encoding="UTF-8"?>
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns="http://www.opengis.net/gml/3.2"
             xmlns:xs="http://www.w3.org/TR/2008/REC-xml-20081126#"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xmlns:ogr="http://ogr.maptools.org/"
             xmlns:gml="http://www.opengis.net/gml/3.2"
             xmlns:geo="http://www.opengis.net/ont/geosparql#">
       <rdf:Description rdf:about="http://geodata.gov.gr/id/boundary/">
          <geo:asWKT rdf:datatype="http://www.opengis.net/ont/sf#wktLiteral">43463452287194963935291930</geo:asWKT>
    </rdf:Description>Bigfork Municipal Airport     47.7789    -93.6500   1343.0000Effie451306,5291930Bolduc Seaplane Base     47.5975    -93.4106   1325.0000Balsam Lake469137,5271647Bowstring Municipal Airport     47.5583    -93.8689   1372.0000Jessie Lake434634,5267578Burns Lake Seaplane Base     47.6233    -93.6103   1357.0000Clubhouse Lake454146,5274617Christenson Point Seaplane Base     47.6692    -93.0544   1372.0000Side Lake495913,5279532Deer River Municipal Airport     47.3522    -93.8000   1311.0000Deer River439581,5244617Gospel Ranch Airport     47.2289    -93.0919   1394.0000Floodwood Lake493040,5230604Grand Rapids-Itasca County/Gordon Newstrom Field     47.2108    -93.5097   1355.0000Grand Rapids461401,5228719Richter Ranch Airport     47.3161    -93.5914   1340.0000Cohasset East455305,5240463Shaughnessy Seaplane Base     47.4178    -93.3839   1300.0000Lawrence Lake West471043,5251664Sixberrys Landing Seaplane Base     47.6775    -93.0481   1372.0000Side Lake496393,5280458Snells Seaplane Base     47.6472    -93.7450   1351.0000Bigfork444049,5277360Bolduc Seaplane Base   1325.0000Tyler's Lake469000,5270000</rdf:RDF>
@KostasPatroumpas
Copy link
Member

Hello and thanks for your interest in using TripleGeo.

In order to transform GML files into RDF, you should make changes at the GML2RDF.xsl stylesheet. In particular, you have to specify suitable values for all XSL variables marked with EDIT in this stylesheet, including the base URI to be used for the triples, the geospatial ontology (e.g., GeoSPARQL WKT), the tag specifying the geometry, etc.

In addition, you must pay attention to the version of the GML features, as specified in the corresponding XMLNS namespace in the header of your input (e.g., "http://www.opengis.net/gml" or "http://www.opengis.net/gml/3.2"). Make sure that you specify an identical XMLNS in the headers of both GML2RDF.xsl and GML2RDF.xsl stylesheets. This latter stylesheet is called by GML2RDF.xsl, and it is the one that actually transforms GML geometries into WKT serializations compliant with GeoSPARQL.

Once all this is properly specified, TripleGeo can readily proceed to generate the RDF triples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants