resultStatements.size());
}
@Test
public void testRioOWLRDFParser() throws Exception {
RDFParser parser = new RioManchesterSyntaxParserFactory().getParser();
String inputManSyntax = "Prefix: owl: <http://www.w3.org/2002/07/owl#>\n"
+ "Prefix: rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n"
+ "Prefix: xml: <http://www.w3.org/XML/1998/namespace>\n"
+ "Prefix: xsd: <http://www.w3.org/2001/XMLSchema#>\n"
+ "Prefix: rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n"
+ "Ontology: <http://www.owl-ontologies.com/Ontology1307394066.owl>\n"
+ "Datatype: xsd:decimal\n"
+ "Datatype: xsd:int\n"
+ "Datatype: xsd:dateTime\n"
+ "DataProperty: <http://www.owl-ontologies.com/Ontology1307394066.owl#hasAge>\n"
+ " Characteristics: \n"
+ " Functional\n"
+ " Range: \n"
+ " xsd:int\n"
+ "DataProperty: <http://www.owl-ontologies.com/Ontology1307394066.owl#hasDate>\n"
+ " Range: \n"
+ " xsd:dateTime\n"
+ "Class: <http://www.owl-ontologies.com/Ontology1307394066.owl#Person>\n"
+ "Individual: <http://www.owl-ontologies.com/Ontology1307394066.owl#p1>\n"
+ " Types: \n"
+ " <http://www.owl-ontologies.com/Ontology1307394066.owl#Person>\n"
+ "Rule: \n"
+ " xsd:decimal(?x), <http://www.owl-ontologies.com/Ontology1307394066.owl#hasAge>(?p, ?x) -> <http://www.owl-ontologies.com/Ontology1307394066.owl#Person>(?p)";
parser.setRDFHandler(testHandlerStatementCollector);
parser.parse(new StringReader(inputManSyntax),
"http://www.owl-ontologies.com/Ontology1307394066.owl");
assertEquals(36, testHandlerStatementCollector.getStatements().size());
}