Questions tagged [easyrdf]

For questions related to EasyRDF, a PHP library for RDF.

Resources

26 questions
3
votes
1 answer

JSON-LD always framing single object as array

Is there a way to always force single objects to arrays with EasyRdf? If there are multiple values as rdf:type I get an array like this one. Note the @type property is an array. { "@context": { "ethon": "http://ethon.consensys.net/", …
Daniel Luca CleanUnicorn
  • 1,018
  • 1
  • 12
  • 30
2
votes
1 answer

Jena Fuseki SPARQL INSERT in PHP (EasyRDF lib)

I'm trying to run the sample code from the EasyRDF library with Apache Jena Fuseki, but the following error occurs when entering data into the database: Fatal error: Uncaught exception 'EasyRdf_Exception' with message 'HTTP request for http://…
LauBF
  • 33
  • 4
1
vote
0 answers

I use EasyRdf PHP library to make a http request to json-server, but I don't know how to convert a string response that looks like a JSON

My school project is to create a Frontend ( html+javascript with ajax calls) connected to a PHP backend that is connected to NodeJs json-server ( https://www.npmjs.com/package/json-server) The issue I have is on my backend where I use EasyRDF PHP…
1
vote
1 answer

Fuseki config for 2 datasets + text index : how to use turtle files?

I'm new to fuseki and want to use 2 TDB datasets for our project : a small one for our own data, and a large one (168 M triples, imported data from http://data.bnf.fr). We need to index the data because SPARQL queries using "FILTER(CONTAINS())"…
vvffl
  • 63
  • 8
1
vote
1 answer

Parsing Turtle (RDF) from string to array

How can I parse RDF content (in the Turtle serialization) using EasyRDF? For instance, something like this: $rdf = ' "object0"@en .' ; $rdf .= "\n" ; $rdf .= ' "object1"@en .' ; $array =…
Dani-Br
  • 1,963
  • 3
  • 22
  • 30
1
vote
1 answer

Easy RDF library is not returning proper RDF values

I have an remote RDF file from where I want to fetch some data. It is on remote server and the example data is working 100% fine, but soon I parse my file it starts giving the error. I am using Easy RDF library. Here is the example they are…
1
vote
0 answers

Is it possible to extract RDFa from html page using EasyRdf?

I'm trying to extract RDFa data from an html page using EasyRDF. But it doesn't seem to work. E.g., I've tried: $work = new EasyRdf_Graph("http://example.com/"); $work->load(); echo $work; $title = $work->primaryTopic(); echo "Title:…
slwr
  • 985
  • 5
  • 14
  • 33
0
votes
0 answers

How to execute a SPARQL query on Turtle file with php EasyRDF?

I'm tring to execute a SPARQL query on my Turtle file from a php script using EasyRDF library; all of this is running on XAMPP. However the result of the query is always empty. This is my php script: \EasyRdf\RdfNamespace::set('aplm',…
0
votes
1 answer

HTTP requests are duplicated (Jquery/PHP)

HTML