Re: [topbraid-users] Import FOAF fails

2018-08-22 Thread Richard Cyganiak

> On 22 Aug 2018, at 02:45, Rob Atkinson  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 topbraid-users+unsubscr...@googlegroups.com 
> .
> For more options, visit 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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] Import FOAF fails

2018-08-21 Thread Rob Atkinson
OK - thanks

DCAT imports FOAF - uses it mainly in metadata annotations about its
creators, but a few other places - do you think there is a case to drop it
in the revision process underway?



On Wed, 22 Aug 2018 at 12:11 Holger Knublauch 
wrote:

> As first aid, here is a copy of FOAF that used to be bundled with TopBraid
> until I removed it two years ago since most people seem to have moved to
> schema.org for these tasks. Put it anywhere into your TBC workspace (or
> do project upload into EDG if you have a remote server).
>
> Holger
>
>
>
> On 22/08/2018 11:45 AM, Rob Atkinson wrote:
>
> Hi
>
> 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.
>
> (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)
>
>
>
> --
> 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 topbraid-users+unsubscr...@googlegroups.com.
> For more options, visit 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 topbraid-users+unsubscr...@googlegroups.com.
> For more options, visit 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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] Import FOAF fails

2018-08-21 Thread Holger Knublauch
As first aid, here is a copy of FOAF that used to be bundled with 
TopBraid until I removed it two years ago since most people seem to have 
moved to schema.org for these tasks. Put it anywhere into your TBC 
workspace (or do project upload into EDG if you have a remote server).


Holger



On 22/08/2018 11:45 AM, Rob Atkinson wrote:

Hi

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.


(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)




--
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 topbraid-users+unsubscr...@googlegroups.com 
.

For more options, visit 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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# baseURI: http://xmlns.com/foaf/0.1/
# imports: http://purl.org/dc/elements/1.1/
# imports: http://www.w3.org/2003/01/geo/wgs84_pos
# prefix: foaf

@prefix dc:  .
@prefix foaf:  .
@prefix owl:  .
@prefix rdf:  .
@prefix rdfs:  .
@prefix vs:  .
@prefix wot:  .
@prefix xsd:  .

dc:date
  rdf:type owl:AnnotationProperty ;
.
dc:description
  rdf:type owl:AnnotationProperty ;
.
dc:title
  rdf:type owl:AnnotationProperty ;
.

  rdf:type owl:Class ;
.
vs:term_status
  rdf:type owl:AnnotationProperty ;
.
foaf:
  rdf:type owl:Ontology ;
  dc:date "$Date: 2007-06-16 23:18:26 $" ;
  dc:description "The Friend of a Friend (FOAF) RDF vocabulary, described using 
W3C RDF Schema and the Web Ontology Language." ;
  dc:title "Friend of a Friend (FOAF) vocabulary" ;
  rdfs:comment """This is a modified version of the official FOAF 
specification, optimized for editing tools such as TopBraid.
Changes include:
- removed { ?p rdf:type rdf:Property }  on properties that are also 
owl:DatatypeProperty etc
- removed { ?p rdfs:domain owl:Thing }  to prevent these properties from 
showing up on all forms
- removed { ?p rdfs:range owl:Thing }  especially for inverse properties for 
the same reason
- removed subclass relationships into external ontologies such as wordnet to 
keep the class tree flat

Edited 2008-02-07 by Holger Knublauch""" ;
  owl:imports dc: ;
  owl:imports  ;
.
foaf:Agent
  rdf:type owl:Class ;
  rdfs:comment "An agent (eg. person, group, software or physical artifact)." ;
  rdfs:label "Agent" ;
  owl:disjointWith foaf:Document ;
  vs:term_status "stable" ;
.
foaf:Document
  rdf:type owl:Class ;
  rdfs:comment "A document." ;
  rdfs:isDefinedBy foaf: ;
  rdfs:label "Document" ;
  owl:disjointWith foaf:Organization ;
  owl:disjointWith foaf:Person ;
  owl:disjointWith foaf:Project ;
  vs:term_status "testing" ;
.
foaf:Group
  rdf:type owl:Class ;
  rdfs:comment "A class of Agents." ;
  rdfs:label "Group" ;
  rdfs:subClassOf foaf:Agent ;
  vs:term_status "stable" ;
.
foaf:Image
  rdf:type owl:Class ;
  rdfs:comment "An image." ;
  rdfs:isDefinedBy foaf: ;
  rdfs:label "Image" ;
  vs:term_status "testing" ;
.
foaf:OnlineAccount
  rdf:type owl:Class ;
  rdfs:comment "An online account." ;
  rdfs:isDefinedBy foaf: ;
  rdfs:label "Online Account" ;
  rdfs:subClassOf owl:Thing ;
  vs:term_status "unstable" ;
.
foaf:OnlineChatAccount
  rdf:type owl:Class ;
  rdfs:comment "An online chat account." ;
  rdfs:isDefinedBy foaf: ;
  rdfs:label "Online Chat Account" ;
  rdfs:subClassOf foaf:OnlineAccount ;
  vs:term_status "unstable" ;
.
foaf:OnlineEcommerceAccount
  rdf:type owl:Class ;
  rdfs:comment "An online e-commerce account." ;
  rdfs:isDefinedBy foaf: ;
  rdfs:label "Online E-commerce Account" ;
  rdfs:subClassOf foaf:OnlineAccount ;
  vs:term_status "unstable" ;
.
foaf:OnlineGamingAccount
  rdf:type owl:Class ;
  rdfs:comment "An online gaming account.

[topbraid-users] Import FOAF fails

2018-08-21 Thread Rob Atkinson
Hi

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.

(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)



-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.