Questions tagged [easyrdf]
For questions related to EasyRDF, a PHP library for RDF.
28
questions
0
votes
1
answer
67
views
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 ...
1
vote
0
answers
51
views
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 ...
1
vote
1
answer
103
views
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 ...
1
vote
0
answers
58
views
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 ...
0
votes
1
answer
50
views
HTTP requests are duplicated (Jquery/PHP)
HTML
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
function ...
1
vote
1
answer
209
views
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 ...
1
vote
0
answers
32
views
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 ...
0
votes
1
answer
60
views
EasyRdf memory exhausted
I am using EasyRdf library using linked movie database.
On first try it gave error maximum memory utilization then I set memory limit to 999G which exhausted my pc.
Following is my code and URL to use ...
0
votes
0
answers
152
views
EasyRDF example not working for me on server
I'm setting up easyrdf for a project so I'm trying the homepage example. Locally all is fine. However as soon as I change the file different to the example one (http://njh.me/foaf.rdf) or doing the ...
0
votes
0
answers
533
views
How to query an rdf file locally with SPARQL in PHP
I need to request an rdf file with some SPARQL Query. And I have to do it in PHP. I test my code with WAMP.
Is it possible to request rdf file locally with sparql query in php ? If yes, is it ...
0
votes
0
answers
240
views
EasyRDF (php library): how to extract all the attributes and literals in RDF/XML?
With EasyRDF(PHP library), how to extract all the attributes and literals in XML/RDF?
I tried EasyRdf_Literal_XML::create(); and EasyRdf_Parser_RdfXml::parse(); EasyRdf_Literal_XML::domParse(); but ...
0
votes
2
answers
514
views
PHP EasyRDF : unable to get graph from construct query
I'm trying to get a EasyRdf_Graph object from a query sent via EasyRdf_Sparql_Client::query.
EasyRDF doc says:
SELECT and ASK queries will return an object of type EasyRdfSparqlResult.
...
2
votes
1
answer
1k
views
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 '...
0
votes
1
answer
1k
views
How to build a PHP webpage using ontology that already mapped to relational database
It's my very first time building for the semantic web.
I'm not sure how to create a PHP webpage and connect it to an ontology which I have mapped to a relational database using the Ontop plugin for ...
1
vote
1
answer
859
views
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 ...
0
votes
0
answers
646
views
How to execute SPARQL Select query using EasyRdf locally in PHP?
I have JSON-LD data on URL http://mystore.com/data1 . I want to execute SPARQL SELECT query in PHP.Here is my code :
$sparql = new EasyRdf_Sparql_Client('http://mystore.com/data1');
$result = $...
3
votes
1
answer
310
views
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": {
...
0
votes
1
answer
579
views
How to fetch SPARQL query result using EasyRdf
Using EasyRdf, I want to fetch query result. I used below code in codeigniter:
$this->load->library('rdf');
EasyRdf_Namespace::set('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns');
...
0
votes
1
answer
563
views
Get label of a given dbpedia resource
For a given Dbpedia Resource, I want to get its Rdfs: label. For example, from http://fr.dbpedia.org/resource/Automobile, I should get Automobile,
I tried with easy RDF:
$label= new \EasyRdf\Graph;
...
0
votes
1
answer
175
views
Stop EasyRDF from nesting resources
I have an RDF graph that I create with EasyRDF:
<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/...
-1
votes
1
answer
799
views
Semantic Web PHP
I'm using some query to get data from DBpedia. First there is a drop down which has all the names of the museums. After selecting one museum and clicking the search button it has to give me some query ...
1
vote
1
answer
687
views
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 = '<subject> <predicate> "object0"@en .' ;
$rdf .= "\n" ;
$rdf .= '<...
0
votes
1
answer
684
views
SPARQL query of Person using EasyRdf on DBpedia
I want to get all information about a Person from the DBpedia SPARQL API.
First problem is, the request took too long time.
Second, I don't get back any information about the person I looked for.
I ...
0
votes
1
answer
1k
views
How to Execute SPARQL Queries via EasyRdf?
I don't know, how to get a SPARQL query executed on the Virtuoso server via EasyRdf.
Virtuoso is started via
virtuoso\bin\virtuoso-t +service create +instance VirtuosoService
and I can go to http://...
1
vote
1
answer
2k
views
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 ...
0
votes
1
answer
914
views
EasyRDF: how to create a blank node and set a rdf:about property?
I am using EasyRdf to create a few nodes in the graph. My problem is that I am trying to create a new blank node and also set an rdf:about property to it that points to the correct resource.
$rdf = ...
0
votes
1
answer
277
views
How to add rdf:datatype with EasyRdf
I am using http://www.easyrdf.org/ PHP library to create an RDF document. I don't know how to add to the RDF document the rdf:datatype.
So what I am trying to achieve is
<rdf:Description rdf:...
1
vote
0
answers
365
views
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 =...