JAVA SKOS API to load local file

78 views
Skip to first unread message

Matthias Fuchs

unread,
Apr 22, 2014, 1:56:55 PM4/22/14
to skos...@googlegroups.com
Hi,

this is a newbie question so please bear with me.

I failed to open a SKOS file when using the SKOS API [1].

What I wanted was to open the locally stored ACM classificaton [2].
I looked at the examples and replaced the uris with one pointing to the
ACM file.
Yet after loadDatasetFromPhysicalURI it appears as if the resulting data
set is empty.

This might have to do with "mappers" mentioned in the API doc, yet I
don't know how to use these.

Cheers,
matthias

[1] http://skosapi.sourceforge.net/
[2] http://www.acm.org/about/class/2012 direct link
http://dl.acm.org/ft_gateway.cfm?id=2371137&ftid=1290922&dwn=1

Simon Jupp

unread,
Apr 27, 2014, 8:45:10 AM4/27/14
to skos-dev
Hi Matthias, 
I had a look at the file you are trying to load and the OWL API RDF parser used by the SKOS API is having problems reading it. I'll have to dig a little deeper to find out why, I'll let you know if I come up with anything. 
Sorry can't be much more help right now
Simon






--
You received this message because you are subscribed to the Google Groups "skos-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skos-dev+unsubscribe@googlegroups.com.
To post to this group, send email to skos...@googlegroups.com.
Visit this group at http://groups.google.com/group/skos-dev.
For more options, visit https://groups.google.com/d/optout.

Simon

unread,
Jun 25, 2014, 10:03:30 AM6/25/14
to skos...@googlegroups.com
Hi Matthias, 
Long time getting back to you on this but finally worked out that the file you were loading had URIs with spaces in that the RDF parser didn't like

org.semanticweb.owlapi.rdf.syntax.RDFParserException:
[line=13:column=114] IRI 'http://totem.semedica.com/taxonomy/The ACM
Computing Classification System (CCS)' cannot be resolved against
current base IRI file:/Users/ignazio/workspace/temp/acmjupp.rdf reason
is: Illegal character in path at index 38:
http://totem.semedica.com/taxonomy/The ACM Computing Classification
System (CCS)

I think the latest version of the OWL API RDF parsers deals with now. 

Cheers
Simon

Matthias Fuchs

unread,
Jun 26, 2014, 5:26:46 PM6/26/14
to skos...@googlegroups.com
Hi,

thanks for your answer.
That helps a lot.

Cheers,
matthias
> [1] http://skosapi.sourceforge.net/ <http://skosapi.sourceforge.net/>
> <http://dl.acm.org/ft_gateway.cfm?id=2371137&ftid=1290922&dwn=1>
>
> --
> You received this message because you are subscribed to the Google
> Groups "skos-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skos-dev+u...@googlegroups.com
> <mailto:skos-dev+u...@googlegroups.com>.
> To post to this group, send email to skos...@googlegroups.com
> <mailto:skos...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages