Questions tagged [arc2]

ARC2 is a PHP 5.3 library for working with RDF. It also provides a MySQL-based triplestore with SPARQL support.

Resources

17 questions
3
votes
1 answer

Import RDF: are referenced blank nodes gonna be merged or handled separately?

When importing RDF into a triple store: Are referenced blank nodes (as object) gonna be merged or handled separately, as if they are distinct? Example RDF to import into a triple store: @prefix ex: . ex:foo ex:bar [ ex:baz 42 ], [ …
k00ni
  • 315
  • 4
  • 17
2
votes
1 answer

RC2 Implementation differences C# and Python?

For compatibility/legacy reasons I need to use RC2 encryption in CBC mode. I am writing a test - but I get completely different results in C#, Python and with Online Tools, with the (seemingly) same input values. For all implementations I used the…
Kyu96
  • 1,159
  • 2
  • 17
  • 35
1
vote
0 answers

Is there a function that ressembles find_in_set for sparql or ARC2?

This is my first post,so I'm not sure how to ask the question ,but I have been working on an e-learning website using a classic search engine and a semantic one,I created my ontology,and used ARC2 and fuseki server, and the sparql query works when…
1
vote
1 answer

Cannot do any INSERT in ARC2

I looked through varios examples, and tried to INSERT for ARC2. Without any result. Maybe it is some grammar mistake?
elka
  • 25
  • 3
1
vote
1 answer

How to count number of triplets in ARC2 PHP

I created a CONSTRUCT query in ARC2 PHP, but how is it possible to count how many triplets I have received? $query = ' PREFIX dbpedia-owl: PREFIX owl: PREFIX xsd:…
elka
  • 25
  • 3
0
votes
1 answer

RC2 encryption results differences in Python and Java

For legacy compatibility I am being tasked with taking a 40 character value and adding 00000000 to the end and encrypting using RC2 in CBC Mode. I've been provided a 20 character key to use for encryption and a stand alone tool, written in Java,…
S3r4ph
  • 1
  • 2
0
votes
1 answer

Could not properly handle " PREFIX in ARC2

I try to query data in the ontology which is saved in the GraphDB Ontotext. I use ARC2 as remote store end point, but I got the result that my query can't handle Prefix. I implement it using Codeigniter and it worked fine to find Class inside…
0
votes
0 answers

how to add new individual with arc2 to my owl file?

i have just begin to work with owl file in arc2. i have a owl file like this;
0
votes
1 answer

Can't fetch data from land registry api data using PHP ARC2 SPARQL

I have a piece of code that is written in PHP and uses the ARC2 library to fetch data from an endpoint via SPARQL.
0
votes
0 answers

php script works in shell, but not on webserver

My php-script works perfectly, if I execute it in a shell ($ php test.php). But if I call the same php-file in my web-browser it just works in parts. I work on a Debian4.9-System, the php-file is in /var/www/html/ (will change this). I suspect, that…
dia
  • 329
  • 2
  • 12
0
votes
0 answers

SPARQL queries through AR2 PHP aren't working anymore

I used the ARC2 PHP library (https://github.com/semsol/arc2) to query my ontology from my website. It needed me to create a MySQL database on the server, which I did. Triples from the ontology are stored in this database, by the ARC2 library. SPARQL…
0
votes
0 answers

How to insert into in ARC2

I am trying to insert an individual into in ARC 2, without any success for now... I used INSERT INTO ...CONSTRUCT $query = 'PREFIX owl: PREFIX untitled-ontology-120: …
elka
  • 25
  • 3
0
votes
0 answers

How to combine 2 endpoints in the same time with ARC2?

I'm using ARC2 in order to execute SPARQL queries on DBpedia and get the results as a HTML Web page (a table). Thus the script for this purpose is written in PHP and SPARQL. But I would also like to integrate "in the same time" another endpoint in…
Olscream
  • 127
  • 1
  • 14
0
votes
0 answers

cannot query from local owl using php ARC2

i was developing a website using php (i used ARC2 library) that uses OWL as a backend like mysql, but i can not query and get any result... please please help :( here is the full code that i was trying...
0
votes
1 answer

A SPARQL query that works in the DBpedia endpoint but not with ARC2

the query is the following : PREFIX rdfs: SELECT distinct ?value from WHERE{ ?sub rdfs:label ?value. …
lady_OC
  • 417
  • 1
  • 5
  • 20
1
2