How to use EasyRDF without composer ?

192 views
Skip to first unread message

Mohammad Bilal Chawki

unread,
Jun 22, 2016, 8:15:11 AM6/22/16
to EasyRdf Discussion
Hi !

I have access to an Apache server which permit me to create a PHP website but I can't install composer or any other program in the server (he's not mine). So my question is simple : can I use EasyRDF without any other program, just with files downloaded in EasyRDF official website ?

Thank you very much,
Mohammad.

Nicholas Humfrey

unread,
Jun 22, 2016, 8:54:13 AM6/22/16
to eas...@googlegroups.com
Hello Mohammad,

Simple answer is: Yes.

All the examples at the moment, don't actually use Composer:
https://github.com/njh/easyrdf/blob/0.9.0/examples/basic.php

They just require 'EasyRdf.php'.

However alternatively, it is also possible to run composer on your local
machine and then upload the resulting collection of files to the remote
server.

nick.


On 2016-06-22 12:54, 'Mohammad Bilal Chawki' via EasyRdf Discussion
wrote:
> --
> You received this message because you are subscribed to the Google
> Groups "EasyRdf Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to easyrdf+u...@googlegroups.com.
> To post to this group, send email to eas...@googlegroups.com.
> Visit this group at https://groups.google.com/group/easyrdf.
> For more options, visit https://groups.google.com/d/optout.

Mohammad Bilal Chawki

unread,
Jun 28, 2016, 7:55:01 AM6/28/16
to EasyRdf Discussion
Hi !

Thank you very mich for you help, Nicholas, it's working ! :)

I have an other question : can EasyRDF access to a local RDF file ?

I started with the "Basic FOAF example". I tried to download "foaf.rdf" in the php server and to replace online address by my local address (like "../testER/foaf.rdf") but it doesn't work :
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'EasyRdf_Http_Client only supports the 'http' and 'https' schemes.'

What do you think about it ?

Thank you a lot,
Mohammad.

Nicholas Humfrey

unread,
Jun 28, 2016, 8:03:09 AM6/28/16
to eas...@googlegroups.com
Hello,

There is a seperate method to parse a local file from disk:
http://www.easyrdf.org/docs/api/EasyRdf_Graph.html#method_parseFile

Example:

$graph = new EasyRDF_Graph();
$graph->parseFile("../testER/foaf.rdf");


nick.


On 2016-06-28 12:33, 'Mohammad Bilal Chawki' via EasyRdf Discussion
wrote:
> Hi !
>
> Thank you very mich for you help, Nicholas, it's working ! :)
>
> I have an other question : can EasyRDF access to a local RDF file ?
>
> I started with the "Basic FOAF example". I tried to download
> "foaf.rdf" in the php server and to replace online address by my local
> address (like "../testER/foaf.rdf") but it doesn't work :
> Fatal error: Uncaught exception 'InvalidArgumentException' with
> message 'EasyRdf_Http_Client only supports the 'http' and 'https'
> schemes.'
>
> What do you think about it ?
>
> Thank you a lot,
> Mohammad.
>
> Le mercredi 22 juin 2016 14:54:13 UTC+2, Nicholas Humfrey a écrit :
>
>> Hello Mohammad,
>>
>> Simple answer is: Yes.
>>
>> All the examples at the moment, don't actually use Composer:
>> https://github.com/njh/easyrdf/blob/0.9.0/examples/basic.php [1]
>>> Visit this group at https://groups.google.com/group/easyrdf [2].
>>> For more options, visit https://groups.google.com/d/optout [3].
>
> --
> You received this message because you are subscribed to the Google
> Groups "EasyRdf Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to easyrdf+u...@googlegroups.com.
> To post to this group, send email to eas...@googlegroups.com.
> Visit this group at https://groups.google.com/group/easyrdf.
> For more options, visit https://groups.google.com/d/optout.
>
>
> Links:
> ------
> [1] https://github.com/njh/easyrdf/blob/0.9.0/examples/basic.php
> [2] https://groups.google.com/group/easyrdf
> [3] https://groups.google.com/d/optout

Mohammad Bilal Chawki

unread,
Jun 28, 2016, 8:25:16 AM6/28/16
to EasyRdf Discussion
Thank you very much for your speed and your efficiency. And thank you for your work : it's a very good library.

Have a nice day,
Mohammad.
Reply all
Reply to author
Forward
0 new messages