GithubHelp home page GithubHelp logo

Comments (4)

k00ni avatar k00ni commented on May 27, 2024 1

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.

excel007 avatar excel007 commented on May 27, 2024

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.

fishfree avatar fishfree commented on May 27, 2024

The same problem existes in the latest version: v2.5.1, please reopen this issue.

from arc2.

k00ni avatar k00ni commented on May 27, 2024

@fishfree can you post a simple script which shows the problem?

from arc2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.