> On 22 Aug 2018, at 02:45, Rob Atkinson <[email protected]> wrote: > > using TBC 6 it is failing to load the FOAF ontology from the web at: > > http://xmlns.com/foaf/0.1/ > > this delivers RDF/XML using > > curl -i -X GET -H "Accept: text/turtle, application/rdf+xml" > http://xmlns.com/foaf/0.1/ > > - so perhaps TBC is only asking for turtle, which doesnt seem to be supported? > > I cant find docs of what TBC is trying to do with conneg, so resorting to > list.
It works for me via TBC > File > Import > Import RDF file from the web. I couldn’t get it to work via “Import from URL…” in the Imports pane of a different file, if that was what you tried. But “Import local file…” with the file imported above worked for me. > (NB Was suprised FOAF isnt cached inside TBC like a lot of other common > ontologies - and I may need to be reminded of how to make local cache get > used vs web original - as the import process doesnt make it transparent and > I've forgotten where to look, but vaguely remember some way to use a local > resource instead of a web one in EDG config) In TBC and EDG, this all works via base URIs. In “pure” RDF, the base URI of a file is merely used to turn relative URIs into absolute URIs. But in TBC and EDG, the base URI of a file is considered its graph name. So, when a certain URI is owl:imported into some graph, then TBC/EDG will look for a local file that has this URI as its base URI. If such a file is found, and it is an RDF/XML or Turtle file, then the file’s contents will be used as the graph that is owl:imported. If a file is found and it is, say, a .tdb or .sdb file, then the specified TDB or SDB database is opened, and the resulting graph is owl:imported. (If no such file is found, then depending on configuration options, TBC/EDG might give up with an error, or might try to load the URI from the web. This is generally not a good idea in a production environment, because the web is unreliable.) So, in the FOAF case, if you owl:import http://xmlns.com/foaf/0.1/ into some file, and you have a Turtle or RDF/XML file with that base URI in your workspace, then that Turtle or RDF/XML file will be used as the owl:imported graph. Richard > > > > > -- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
