RDFex?

38 views
Skip to first unread message

Tim Smith

unread,
Nov 10, 2011, 9:27:48 PM11/10/11
to topbrai...@googlegroups.com
Is RDFex still available in TBC-ME (3.5.0)?  I know the online service was shutdown and I can't find any reference to RDFex in the TBC help system.  It would be nice to use this since I'm working with a very large upper ontology which makes TBE/C somewhat cumbersome to use.

Thanks,

Tim

Holger Knublauch

unread,
Nov 10, 2011, 9:48:14 PM11/10/11
to topbrai...@googlegroups.com
Hi Tim,

yes RDFex URLs still work inside of TopBraid, and they are used inside of some of our system ontologies such as in EVN. For example, drag skos:member into the Basket and perform batch operation "Add partial imports with RDFex". This created an import of


with exactly the expected triples (about that property only).

Do you see any problems with this?

Thanks
Holger



--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
topbrai...@googlegroups.com
To unsubscribe from this group, send email to
topbraid-user...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Tim Smith

unread,
Nov 10, 2011, 10:13:05 PM11/10/11
to topbrai...@googlegroups.com
Hi Holger,

Your example works just fine.  I can also access foaf and can add the import by typing the RDFex URL directly into the Import from URL window.

One additional question, are partial imports limited to ontologies that RDFex.org knows about?  Specifically, I would like to partially import a number of classes and properties from a local ontology.   The ontology is too big and makes the UI components cumbersome to use.

Is this possible?

When I drag the the classes and properties of interest into the basket and perform the batch operation, TBC does not create the partial imports.

Thanks,

Tim

Holger Knublauch

unread,
Nov 10, 2011, 10:23:09 PM11/10/11
to topbrai...@googlegroups.com
The basket only works for the default "known" namespaces. But the general syntax is like


We will make sure that this feature gets a proper Help page, and one day hopefully the public rdfex.org comes back as well.

Thanks,
Holger

Tim Smith

unread,
Nov 10, 2011, 10:59:26 PM11/10/11
to topbrai...@googlegroups.com
Ok, that explains the behavior I'm seeing.

I tried typing the following URL into the "Import from URL" window:

http://rdfex.org/?uri=http://ontologies.semanticarts.com/gist?names=Organization

I consistently receive the following error (Full trace below):

Could not complete import
Failed to load: http://ontologies.semanticarts.com/gist?names=Organizatio


Note how the error message is truncated by one character - Organization becomes Organizatio

I don't know if this is the problem but it could be a symptom of a parsing error.

Thanks,

Tim


______________________________

STACK TRACE:

Operation failed.

On: Nov 10, 2011 10:45:27 PM

Reason:
java.io.IOException: Failed to load: http://ontologies.semanticarts.com/gist?names=Organizatio

    at org.topbraid.core.registry.URLGraphSource.openInputStream(URLGraphSource.java:55)

    at org.topbraid.core.registry.GraphSource.loadModel(GraphSource.java:155)

    at org.topbraid.core.registry.GraphSource.loadPhysicalSource(GraphSource.java:132)

    at org.topbraid.core.registry.GraphSource.loadGraph(GraphSource.java:90)

    at org.topbraid.core.io.IO.load(IO.java:265)

    at org.topbraid.core.io.IO.load(IO.java:568)

    at org.topbraid.core.io.IO.load(IO.java:188)

    at org.topbraid.partial.cache.Cache.getSourceModel(Cache.java:81)

    at org.topbraid.partial.cache.Cache.get(Cache.java:64)

    at org.topbraid.partial.uriloader.URILoader.load(URILoader.java:30)

    at org.topbraid.core.io.URILoaders.load(URILoaders.java:39)

    at org.topbraid.core.registry.URLGraphSource.loadSpecialGraph(URLGraphSource.java:44)

    at org.topbraid.core.registry.GraphSource.loadGraph(GraphSource.java:84)

    at org.topbraid.core.io.IO.load(IO.java:265)

    at org.topbraid.core.io.IO.load(IO.java:243)

    at org.topbraidcomposer.core.io.TBCIO.loadModel(TBCIO.java:234)

    at org.topbraidcomposer.core.models.Imports.addImport(Imports.java:95)

    at org.topbraidcomposer.navigation.imports.actions.ImportURLAction$1.run(ImportURLAction.java:87)

    at org.topbraidcomposer.core.util.ThreadUtil$1$1.run(ThreadUtil.java:64)

    at java.lang.Thread.run(Unknown Source)

Caused by: org.topbraid.core.io.HttpException: http://ontologies.semanticarts.com/gist?names=Organizatio: Forbidden (403)

    at org.topbraid.core.io.TBIOUtil.openURL(TBIOUtil.java:114)

    at org.topbraid.core.registry.URLGraphSource.openInputStream(URLGraphSource.java:52)

    ... 19 more

Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://ontologies.semanticarts.com/gist/?names=Organizatio

    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

    at org.topbraid.core.io.TBIOUtil.openURL(TBIOUtil.java:108)

    ... 20 more

Holger Knublauch

unread,
Nov 10, 2011, 11:01:55 PM11/10/11
to topbrai...@googlegroups.com
Ah I am very sorry - replace the second ? with & and it will work: ...&names=Organization

Holger

Holger Knublauch

unread,
Nov 10, 2011, 11:13:52 PM11/10/11
to topbrai...@googlegroups.com
Ah I am very sorry - replace the second ? with & and it will work: ...&names=Organization

Holger



On Nov 11, 2011, at 1:59 PM, Tim Smith wrote:

Tim Smith

unread,
Nov 10, 2011, 11:40:11 PM11/10/11
to topbrai...@googlegroups.com
Thanks Holger!

It works quite well.

Tim
Reply all
Reply to author
Forward
0 new messages