b-cube / semantics-preprocessing

initial text preprocessors for the triplestore and feature classification
Other
2 stars 3 forks source link

Store the response source URL in the JSON description #50

Closed roomthily closed 9 years ago

roomthily commented 9 years ago

Especially for services like THREDDS, where if we drop the source URL from the later data structures (triple store, modeling, wherever), we won't be able to make any further requests based on internal links:

<thredds:catalog xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
    xmlns:thredds="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0"
    xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:bes="http://xml.opendap.org/ns/bes/1.0#">
    <thredds:service name="dap" serviceType="OPeNDAP" base="/opendap/hyrax"/>
    <thredds:service name="file" serviceType="HTTPServer" base="/opendap/hyrax"/>
    <thredds:dataset name="/some_dataset"
        ID="/opendap/hyrax/some_dataset/">
        <thredds:catalogRef name="1997" xlink:href="1997/catalog.xml" xlink:title="1997"
            xlink:type="simple" ID="/opendap/hyrax/some_dataset/1997/"/>
    </thredds:dataset>
</thredds:catalog>
roomthily commented 9 years ago

Ha, right, it's in there now.