Questions tagged [easyrdf]

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

Resources

28 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,087
  • 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
  • 5
1
vote
0 answers

Equivalence of load() and dump() functions from Php 'EasyRdf' in Python 'rdflib'

I recently started working with Knowledge Graphs and RDFs, and I was fortunate enough that someone provided me with an introductory excercise, which helped me implement some basic functionalities on a local Apache server using Php and EasyRdf. My…
JakeTheDog
  • 11
  • 3
1
vote
1 answer

Create RDF data using PHP/EasyRdf and Store it on BlazeGraph

I want to store the rdf data that i have created using Easy/Rdf lib from php, i used this : $store = new \EasyRdf\GraphStore('http://192.168.1.35:9999/blazegraph/'); $store->replace($graph); but it gives me an error : HTTP method PUT is not…
Yamine Klioui
  • 55
  • 2
  • 9
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

Get label only for items that exists on wikidata with php sparql

I am working on a personal project using PHP and RDF4J Workbench Service and I have a repository with 3 contexts, one for robot categories, one for those robots that belongs to these categories and another one in which I store the owl:sameAs…
theospace
  • 77
  • 3
  • 10
1
vote
0 answers

TypeMapper Class Object properties empty

I´m new to the rdf and the easyrdf framework stuff. And we currently creating a small poc to see if it´s fit our needs. We want to transform a given RDF file or data for example formatted in rdf/xml to our class object. I already registered…
F. Dengler
  • 63
  • 5
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
  • 73
  • 1
  • 9
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
  • 2,289
  • 5
  • 25
  • 32
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
  • 1,105
  • 6
  • 16
  • 35
0
votes
1 answer

CRUD operation RDF library

I'm just starting to learn about the semantic web. can I perform CRUD operations using EasyRDF or other libraries? previously I saw other libraries like Sparqllib in PHP. there is very simple and has no commands to create, update, delete
0
votes
1 answer

HTTP requests are duplicated (Jquery/PHP)

HTML