Comments (4)
Hi @excel007, sorry for the late answer.
It seems internal variables are not initialized properly is the problem. Its not your fault, our documentation is missing this. Please try the following code:
<?php
include_once(dirname(__FILE__).'/arc/ARC2.php'); // path to the file ARC2.php
include_once(dirname(__FILE__).'/config.php');
$store = ARC2::getStore($arc_config);
// NEW
$store->createDBCon(); // <== creates DB connection
$store->setup(); // <== checks if required tables are exist
$store->query('LOAD <http://chatlogs.planetrdf.com/swig/2009-07-26>');
If you installed ARC2 without composer you might have to include further files to get ARC2 running. The old "way" with including the ARC2 file is not valid anymore, since 2.4, unfortunately. I forgot to adapt the ARC2 to include all required files (#106). That is an unsolved issue.
Please respond how it went.
from arc2.
Thank you :)
It can be load into MySQL.
Hi @excel007, sorry for the late answer.
It seems internal variables are not initialized properly is the problem. Its not your fault, our documentation is missing this. Please try the following code:
<?php include_once(dirname(__FILE__).'/arc/ARC2.php'); // path to the file ARC2.php include_once(dirname(__FILE__).'/config.php'); $store = ARC2::getStore($arc_config); // NEW $store->createDBCon(); // <== creates DB connection $store->setup(); // <== checks if required tables are exist $store->query('LOAD <http://chatlogs.planetrdf.com/swig/2009-07-26>');
If you installed ARC2 without composer you might have to include further files to get ARC2 running. The old "way" with including the ARC2 file is not valid anymore, since 2.4, unfortunately. I forgot to adapt the ARC2 to include all required files (#106). That is an unsolved issue.
Please respond how it went.
from arc2.
The same problem existes in the latest version: v2.5.1, please reopen this issue.
from arc2.
@fishfree can you post a simple script which shows the problem?
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
- Update wiki and README to reflect new way of setting up ARC2
- Fatal error: Class 'ARC2\Store\Adapter\AbstractAdapter' not found in /Applications/MAMP/htdocs/1semantic/vendor/semsol/arc2/src/ARC2/Store/Adapter/mysqliAdapter.php on line 17 HOT 5
- 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.