When trying to run examples from http://docs.oracle.com/cd/E11882_01/appdev.112/e25609/sem_apis_ref.htm everything is ok except the most important call of SPARQL query. Here's the shortened version of the example "family" script:
CREATE TABLE family_rdf_data (id NUMBER, triple SDO_RDF_TRIPLE_S);
EXECUTE SEM_APIS.create_sem_model('family', 'family_rdf_data', 'triple');
INSERT INTO family_rdf_data VALUES (15,
SDO_RDF_TRIPLE_S('family',
'<http://www.example.org/family/Tom>',
'<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>',
'<http://www.example.org/family/Male>'));
COMMIT;
-- Select all males from the family model, without inferencing.
SELECT m
FROM TABLE(SEM_MATCH(
'{?m rdf:type :Male}',
SEM_Models('family'),
null,
SEM_ALIASES(SEM_ALIAS('','http://www.example.org/family/')),
null));
SQLPLUS output:
Table created.
PL/SQL procedure successfully completed.
1 row created.
Commit complete.
SELECT m
*
ERROR at line 1:
ORA-00902: invalid datatype
All similar calls from these examples fail with the same error. Any ideas?
从头开始重新安装Oracle数据库(包括Spatial Option)已解决了该问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.