Comments (5)
Hi @mov580, how did you include ARC2 files?
As described here: https://github.com/semsol/arc2/wiki/Getting-started-with-ARC2 ?
Did you included vendor/autoload.php
?
from arc2.
Hi,
Thanks for your response
I added this according to the documentation
include_once("path/to/arc/ARC2.php");
where should I include the vendor/autoload.php
my file?
from arc2.
OK seems working now but I have another error
Fatal error: Cannot declare class ARC2, because the name is already in use in /Applications/MAMP/htdocs/1semantic/vendor/semsol/arc2/ARC2.php on line 15
from arc2.
Hi,
your file with ARC2 should begin like the following:
<?php
require ('vendor/autoload.php');
$store = ARC2::getStore($config);
if (!$store->isSetUp()) {
$store->setUp();
}
// ...
Please replace vendor/autoload.php
with the right path on your machine. Do not include vendor/semsol/arc2/ARC2.php
when you already included vendor/autoload.php
, because they include almost the same files. Because of the double-include, you get the name is already in use
errors.
Use vendor/autoload.php
only, it should include all required files.
from arc2.
@mov580: is this solved? Please close this then.
from arc2.
Related Issues (20)
- Add cache HOT 1
- Bug: ARC2 creates the same triple multiple times in the DB
- COUNT doesn't work with local endpoint HOT 4
- Multiple LOAD statements - some data not returned in subsequent SELECT queries
- Port repeating himself on localhost (with custom port) HOT 2
- Fix failing tests HOT 4
- Need SSL config advice for SPARQL endpoint
- Fatal error: Class 'ARC2\Store\Adapter\AbstractAdapter' not found HOT 4
- Problem with function fetchRow() ARC2_Store.php on line 761 HOT 4
- Update wiki and README to reflect new way of setting up ARC2
- Any reason SELECTing on a predicate wouldn't be working? HOT 6
- fetchRow() returns false, not null, resulting in false positive for hasHashColumn() HOT 2
- Turtle parser can not parse decimals
- FILTER subject in an array of values HOT 1
- Problem finding AbstractAdapter in mysqliAdapter HOT 3
- Direct RDF import into database HOT 5
- preg_match error in PHP 7.4 HOT 1
- Problem querying PhySH subject headings using SPARQL: not all rows are returned
- SPARQL + Endpoint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arc2.