HELP--[WS-AUTH-VALIDATION-104] Unauthorized Request:You are trying to access a dataset that is not registered in OSF: file://localhost/data/ontologies/files/drupal.owl

52 views
Skip to first unread message

Shan Wan

unread,
Jul 21, 2017, 4:56:15 AM7/21/17
to Open Semantic Framework
Hi,
I am a university student who want to implement ontology using drupal and osf, so I install the osf for drupal by the osf-installer 3.4.

I installed it successfully except one phpUnit test failure, here is the last several steps when finishing osf installation.

-----------------------
| Setting up Virtuoso |
-----------------------


Create the WSF Network...
Connected to OpenLink Virtuoso
Driver: 07.10.3211 OpenLink Virtuoso ODBC Driver


Done. -- 25 msec.
Commit transactions to Virtuoso...
Connected to OpenLink Virtuoso
Driver: 07.10.3211 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.


Done. -- 93 msec.
Downloading the core OSF ontologies...
Installing the core OSF ontologies...
Loading the core OSF ontologies...


Loading: file://localhost/data//ontologies/files/aggr.owl
file
://localhost/data//ontologies/files/aggr.owl loaded!
Loading: file://localhost/data//ontologies/files/iron.owl
file
://localhost/data//ontologies/files/iron.owl loaded!
Loading: file://localhost/data//ontologies/files/owl.rdf
file
://localhost/data//ontologies/files/owl.rdf loaded!
Loading: file://localhost/data//ontologies/files/rdfs.xml
file
://localhost/data//ontologies/files/rdfs.xml loaded!
Loading: file://localhost/data//ontologies/files/rdf.xml
file
://localhost/data//ontologies/files/rdf.xml loaded!
Loading: file://localhost/data//ontologies/files/sco.owl
file
://localhost/data//ontologies/files/sco.owl loaded!
Loading: file://localhost/data//ontologies/files/wgs84.owl
file
://localhost/data//ontologies/files/wgs84.owl loaded!
Loading: file://localhost/data//ontologies/files/wsf.owl
file
://localhost/data//ontologies/files/wsf.owl loaded!
Loading: file://localhost/data//ontologies/files/drupal.owl
file
://localhost/data//ontologies/files/drupal.owl loaded!


Creating underlying ontological structures...


Generating derivate ontological structures...
Generating ironXML schema of the Drupal Ontology ontology...
Generated...
Saved to: /data/ontologies/structure/drupal.xml
Generating ironXML schema of the The RDF Vocabulary (RDF) ontology...
Generated...
Saved to: /data/ontologies/structure/rdf.xml
Generating ironXML schema of the The OWL 2 Schema vocabulary (OWL 2) ontology...
Generated...
Saved to: /data/ontologies/structure/owl.xml
Generating ironXML schema of the irON (instance record and Object Notation) ontology...
Generated...
Saved to: /data/ontologies/structure/iron.xml
Generating ironXML schema of the The RDF Schema vocabulary (RDFS) ontology...
Generated...
Saved to: /data/ontologies/structure/rdfs.xml
Generating ironXML schema of the WGS84 Geo Positioning: an RDF vocabulary ontology...
Generated...
Saved to: /data/ontologies/structure/wgs84.xml
Generating ironXML schema of the Web Services Frameworks Ontology ontology...
Generated...
Saved to: /data/ontologies/structure/wsf.xml
Generating ironXML schema of the Semantic Components Ontology ontology...
Generated...
Saved to: /data/ontologies/structure/sco.xml
Generating ironXML schema of the Aggregation Ontology ontology...
Generated...
Saved to: /data/ontologies/structure/aggr.xml
Generating ironJSON schema of the Drupal Ontology ontology...
Generated...
Saved to: /data/ontologies/structure/drupal.json
Saved to: /data/ontologies/structure/drupal.js
Generating ironJSON schema of the The RDF Vocabulary (RDF) ontology...
Generated...
Saved to: /data/ontologies/structure/rdf.json
Saved to: /data/ontologies/structure/rdf.js
Generating ironJSON schema of the The OWL 2 Schema vocabulary (OWL 2) ontology...
Generated...
Saved to: /data/ontologies/structure/owl.json
Saved to: /data/ontologies/structure/owl.js
Generating ironJSON schema of the irON (instance record and Object Notation) ontology...
Generated...
Saved to: /data/ontologies/structure/iron.json
Saved to: /data/ontologies/structure/iron.js
Generating ironJSON schema of the The RDF Schema vocabulary (RDFS) ontology...
Generated...
Saved to: /data/ontologies/structure/rdfs.json
Saved to: /data/ontologies/structure/rdfs.js
Generating ironJSON schema of the WGS84 Geo Positioning: an RDF vocabulary ontology...
Generated...
Saved to: /data/ontologies/structure/wgs84.json
Saved to: /data/ontologies/structure/wgs84.js
Generating ironJSON schema of the Web Services Frameworks Ontology ontology...
Generated...
Saved to: /data/ontologies/structure/wsf.json
Saved to: /data/ontologies/structure/wsf.js
Generating ironJSON schema of the Semantic Components Ontology ontology...
Generated...
Saved to: /data/ontologies/structure/sco.json
Saved to: /data/ontologies/structure/sco.js
Generating ironJSON schema of the Aggregation Ontology ontology...
Generated...
Saved to: /data/ontologies/structure/aggr.json
Saved to: /data/ontologies/structure/aggr.js
Generating PHP serialized classes hierarchy structure file...
Generated...
Saved to: /data/ontologies/structure/classHierarchySerialized.srz
Generating PHP serialized properties hierarchy structure file...
Generated...
Saved to: /data/ontologies/structure/propertyHierarchySerialized.srz
All structures generates!


Cleaning...


----------------------
| Installing PHPUnit |
----------------------


Downloading...
Installing...
Cleaning...
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.


Runtime:        PHP 5.5.9-1ubuntu4.21
Configuration:  /usr/share/osf/StructuredDynamics/osf/tests/phpunit.xml


...............................................................  63 / 751 (  8%)
............................................................... 126 / 751 ( 16%)
............................................................... 189 / 751 ( 25%)
............................................................... 252 / 751 ( 33%)
............................................................... 315 / 751 ( 41%)
............................................................... 378 / 751 ( 50%)
............................................................... 441 / 751 ( 58%)
............................................................... 504 / 751 ( 67%)
............................................................... 567 / 751 ( 75%)
............F.................................................. 630 / 751 ( 83%)
............................................................... 693 / 751 ( 92%)
..........................................................


Time: 14.25 minutes, Memory: 45.00MB


There was 1 failure:


1) StructuredDynamics\osf\tests\ws\revision\update\RevisionUpdateTest::testInterfaceNotExisting
Debugging information: StructuredDynamics\osf\php\api\ws\revision\update\RevisionUpdateQuery::__set_state(ar                                         ray(
   
'endpoint' => 'revision/update/',
   
'method' => 'get',
   
'mime' => 'resultset',
   
'timeout' => 0,
   
'resultset' => NULL,
   
'network' => 'http://drupalogy.com/ws/',
   
'supportedMimes' =>
  array
(
   
0 => 'text/xml',
   
1 => 'application/json',
   
2 => 'application/rdf+xml',
   
3 => 'application/rdf+n3',
   
4 => 'application/iron+json',
   
5 => 'application/iron+csv',
   
6 => 'resultset',
 
),
   
'httpStatus' => '400',
   
'httpStatusMessage' => 'Bad Request',
   
'httpStatusMessageDescription' => '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>4                                         00 Bad Request</title></head><body><h1>Bad Request</h1><p>Your browser sent a request that this server could                                          not understand.<br /></p><hr><address>Apache/2.4.7 (Ubuntu) Server at localhost Port 80</address></body></h                                         tml>',
   
'appID' => 'administer',
   
'apiKey' => '5CCEBBA22A53CA317A625A07A91FF85F',
   
'userID' => 'http://drupalogy.com/wsf/users/tests-suites',
   
'params' =>
  array
(
   
'interface' => 'unexisting interface',
   
'revuri' => 'http%3A%2F%2Ftest.com%2Funittests%2Frevisions%2F1500620637.6212',
   
'dataset' => 'http%3A%2F%2Ftest.com%2Funittests%2F',
   
'lifecycle' => 'experimental',
   
'version' => '3.0',
 
),
   
'error' =>
 
StructuredDynamics\osf\framework\QuerierError::__set_state(array(
     
'id' => 'HTTP-500',
     
'level' => 'fatal',
     
'webservice' => 'http://drupalogy.com/ws/revision/update/',
     
'name' => 'Fatal Error',
     
'description' => 'Unspecified Server Fatal Error',
     
'debugInfo' => '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at localhost Port 80</address>
</body></html>
'
,
 
)),
))
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'HTTP-500'
+'WS-REVISION-UPDATE-300'


/usr/share/osf/StructuredDynamics/osf/tests/ws/revision/update/RevisionUpdateTest.php:170


FAILURES
!
Tests: 751, Assertions: 3861, Failures: 1.
Now that the OSF instance is installed, you can install OSF for Drupal on the same server using this command    ./osf-installer -d --install-osf-drupal

  Then I ignored it and went on with osf-drupal installation, and that was successful. but when I want to look at ontologies by clicking 'ontologies' through admin menu, it's empty.
then I click "Reload all", the ontologies label appears but with a lot of web service error:
  • Web service error: (status: 500) Internal Error - WS-ONTOLOGY-CREATE-201 /ws/ontology/create/ No permissions to use the advanced indexation Make sure to create the permissions, for this user, to write data into this ontology dataset prior making this call. Warning
  • Web service error: (status: 500) Internal Error - WS-ONTOLOGY-CREATE-201 /ws/ontology/create/ No permissions to use the advanced indexation Make sure to create the permissions, for this user, to write data into this ontology dataset prior making this call. Warning
  • Web service error: (status: 500) Internal Error - WS-ONTOLOGY-CREATE-201 /ws/ontology/create/ No permissions to use the advanced indexation Make sure to create the permissions, for this user, to write data into this ontology dataset prior making this call. Warning
  • Web service error: (status: 500) Internal Error - WS-ONTOLOGY-CREATE-201 /ws/ontology/create/ No permissions to use the advanced indexation Make sure to create the permissions, for this user, to write data into this ontology dataset prior making this call. Warning
  • Web service error: (status: 500) Internal Error - WS-ONTOLOGY-CREATE-201 /ws/ontology/create/ No permissions to use the advanced indexation Make sure to create the permissions, for this user, to write data into this ontology dataset prior making this call. Warning
  • Web service error: (status: 500) Internal Error - WS-ONTOLOGY-CREATE-201 /ws/ontology/create/ No permissions to use the advanced indexation Make sure to create the permissions, for this user, to write data into this ontology dataset prior making this call. Warning
  • Web service error: (status: 500) Internal Error - WS-ONTOLOGY-CREATE-201 /ws/ontology/create/ No permissions to use the advanced indexation Make sure to create the permissions, for this user, to write data into this ontology dataset prior making this call. Warning
  • Web service error: (status: 500) Internal Error - WS-ONTOLOGY-CREATE-201 /ws/ontology/create/ No permissions to use the advanced indexation Make sure to create the permissions, for this user, to write data into this ontology dataset prior making this call. Warning
  • Web service error: (status: 500) Internal Error - WS-ONTOLOGY-CREATE-201 /ws/ontology/create/ No permissions to use the advanced indexation Make sure to create the permissions, for this user, to write data into this ontology dataset prior making this call. Warning
then when I select one ontology label(say "Drupal Ontology") and click "View/Anotate", there is no ontology classes there, others are the same,  and the view page displays the following error, which I haven't seen in others posts in this forum:

[WS-AUTH-VALIDATION-104] Unauthorized Request: You are trying to access a dataset that is not registered in OSF: file://localhost/data/ontologies/files/drupal.owl

I saw similar error in this post, but there problems are about "Your are trying to access a dataset that is not registerd in OSF: http://localhost/wsf" rather than "file://localhost/data/ontologies/files/drupal.owl"

so does it mean that the ontolgies were actually not loaded correctly or not to the right place? 

Is there anyone who have a clue on this? I have attached the osf-installer log here. And also I don't know what the phpUnit test results mean. Please give me a hint.

Many thanks for any quick response!!

Shan



osf-installer-2017-07-21_062415.log
Reply all
Reply to author
Forward
0 new messages