I am just working my way thru setting up opencalais, RDF, and installing that ARC2 package on my host...

As noted in another issue (pending patch) the path for the ARC2 /preview/ release I unzipped into rdf/vendor was arc and not arc2. Rather than apply that patch, however, I simply renamed the directory.

But Drupal + RDF module still wasn't loading ARC2, so I opened the code. Turns out I had to make a small modification to line 32 of rdf.module...

Original:
@include_once RDF_ARC2_PATH . '/ARC2.php';

Modified:
@include_once RDF_ARC2_PATH . '/arc2.php';

Sorry I don't have a patch to attach. Maybe someone can upload one. I don't use CVS much.

Also not sure why this inconsistency... the ARC website mentions a "completely rewritten preview release", so maybe that is how the filename capitalization changes got introduced?

Comments

michael.k’s picture

I'm hitting a wall trying to get OpenCalais running on Drupal and can't get past a version of this ARC2 path or naming problem. I tried adjusting the path or name (BTW, had to create /vendor directory) and, regardless of what I do, I don't see anything about ARC2 and get these two messages in the status report:

Calais RDF Parser ARC2 Not installed
ARC2 is not available. Please download the latest version of the library and install it in the RDF module. For more information please refer to the handbook.

RDF library Not installed
ARC2 is not available. It is recommended that you install this library in order to enable support for more RDF formats and for SPARQL queries. To install, download the latest version of the library and unzip it to modules/rdf/vendor/arc2/ under the Drupal directory. For more information please refer to the handbook.

Am I missing something obvious?

Thanks for any help

portulaca’s picture

I got the message to disappear when I moved all the files from

sites / all / modules / rdf / vendor / arc2 / arc

to

sites / all / modules / rdf / vendor / arc2

It depends on the way the archive was unzipped. I created arc2 folder myself and unzipped the archive there so I got additional arc folder. If you unzipped it in vendor/ maybe you just need to rename arc/ to arc2/.

michael.k’s picture

*sigh* thanks but as you can see I already have that directory structure. Renaming the arc > arc2 as one of the first things I did. I also extracted the zip file inside the vendors directory and changed the prefs to read & write for all, still nothing. Apparently that fix mentioned above to rename the rdf.module is the wrong way to go, especially if the filenames themselves are capped up.

Arto’s picture

Title: ARC2 path & class filename » ARC2 library path & class filename
Component: Code » ARC compatibility
Assigned: Unassigned » Arto
Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Matt (the original poster), as the latest ARC2 release (2008-09-30) still contains a file ARC2.php, named in all uppercase, it seems to me your problem would have to have been related to either: a) case-sensitivity issues in the file system you use (which platform was this on?), or, b) an incorrectly packaged earlier ARC2 release zip file on behalf of the ARC2 author. Lacking further information, I'm not going to change the code for the time being; if you could provide more information, I would consider changing the line you pinpointed so that it will load up either ARC2.php or arc2.php, whichever is found, to alleviate any case-sensitivity issues.

Michael, did you manage to solve your problem? If you could post the output of a directory listing of your vendor directory, that would help in understanding what's going on. BTW, pending the next release, I would recommend using 6.x-1.x-dev instead of 6.x-1.0-alpha3, as the latter is getting long in the tooth at this point. When using 6.x-1.x-dev (or any future release), do note that the ARC2 path changed from vendor/arc2/ARC2.php to vendor/arc/ARC2.php per #273804: ARC2 library installation path update.

Arto’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
Issue tags: +ARC2, +Calais
heinzeroth’s picture

Missing ARC2 config.

first download arc.tar.gz http://arc.semsol.org/download/notes

extract into sites/all/modules/rdf-6/rdf/vendor/arc

I had to create folders "vendor" and "arc"

Should work fine - uppercase ARC2.php had no effect and works fine!

crshumate’s picture

ARC2.php is now located at: https://github.com/semsol/arc2/wiki

After creating the "vendor" and "arc" directories and putting all the files inside of "arc" it fixed everything for me.