Hello,
I want to use InfModel to infer statements. There is example on RAP
home page, but it shows using Noation3. What about using XML RDF
notation, is it supported?. I try to infer this way as you see below,
but it doesn,t work, table doesn't show inffered statements.
define ("RDFAPI_INCLUDE_DIR", "rdfapi-php/api/");
include(RDFAPI_INCLUDE_DIR . "RdfAPI.php");
$infModel= ModelFactory::getInfModelF('http://InfModelF.org');
$infModel->load("RdfExampleSchema.rdf"); //RdfExampleSchema.rdf - rdf
schema describing RdfExample.rdf
$infModel->load("RdfExample.rdf");// RdfExample.rdf - rdf document
$infModel->writeAsHtmlTable(); // it prints all statements from
RdfExampleSchema.rdf and RdfExample.rdf , but there is no inffered
statements.
|