load_rdf just returns false. Are there working examples?

View: New views
3 Messages — Rating Filter:   Alert me  

load_rdf just returns false. Are there working examples?

by Samuel Lampa-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to load an xml file containing RDF data into Prolog by the
means of:

load_rdf('filename.xml', list_of_rdf_triples).

The method only returns 'false' though for every rdf documents I've been
trying out.

Anybody know of an rdf file / source that should work for sure (so I can
eliminate the risk that I just have a problem with my rdf-files).

Kind Regards

Samuel Lampa
Masters project student
Dept. of Pharm. Biosciences
Uppsala University, Sweden
Project blog: http://saml.rilspace.com
_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

Re: load_rdf just returns false. Are there working examples?

by Andrew Koster :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't know much about the RDF library, but if that is the exact line
you're using: prolog variables are capitalized. Try
load_rdf('filename.xml', List_of_rdf_triples) instead.

Samuel Lampa escribió:

> I'm trying to load an xml file containing RDF data into Prolog by the
> means of:
>
> load_rdf('filename.xml', list_of_rdf_triples).
>
> The method only returns 'false' though for every rdf documents I've
> been trying out.
>
> Anybody know of an rdf file / source that should work for sure (so I
> can eliminate the risk that I just have a problem with my rdf-files).
>
> Kind Regards
>
> Samuel Lampa
> Masters project student
> Dept. of Pharm. Biosciences
> Uppsala University, Sweden
> Project blog: http://saml.rilspace.com
> _______________________________________________
> SWI-Prolog mailing list
> SWI-Prolog@...
> https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

Re: load_rdf just returns false. Are there working examples?

by Samuel Lampa-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Indeed, that was the problem, of course. Thanks Andrew!

Kind Regards
Samuel

Andrew Koster wrote:

> I don't know much about the RDF library, but if that is the exact line
> you're using: prolog variables are capitalized. Try
> load_rdf('filename.xml', List_of_rdf_triples) instead.
>
> Samuel Lampa escribió:
>> I'm trying to load an xml file containing RDF data into Prolog by the
>> means of:
>>
>> load_rdf('filename.xml', list_of_rdf_triples).
>>
>> The method only returns 'false' though for every rdf documents I've
>> been trying out.
>>
>> Anybody know of an rdf file / source that should work for sure (so I
>> can eliminate the risk that I just have a problem with my rdf-files).
>>
>> Kind Regards
>>
>> Samuel Lampa
>> Masters project student
>> Dept. of Pharm. Biosciences
>> Uppsala University, Sweden
>> Project blog: http://saml.rilspace.com
>> _______________________________________________
>> SWI-Prolog mailing list
>> SWI-Prolog@...
>> https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>
> _______________________________________________
> SWI-Prolog mailing list
> SWI-Prolog@...
> https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>
>

_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog