Here's a little RDF snippet:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rex="http://www.basistech.com/ontologies/2010/6/rex.owl#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<rex:Location rdf:about="uri:c6c54ebb-a232-48cd-80fa-e4adf9cc5001#3">
<rex:hasOriginalText rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Pakistan</rex:hasOriginalText>
<rex:hasNormalizedText
rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>Pakistan</rex:hasNormalizedText>
<rex:hasEntityDetectionSource
rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>gazetteer:../../../bt_root/rlp/rlp/dicts/en-all-gazetteer-LE.bin</rex:hasEntityDetectionSource>
</rex:Location>
</rdf:RDF>
The following rather trivial test fails. I'm sure I'm just befuddled,
could some kind soul rescue me?
OntModel model = ModelFactory.createOntologyModel();
model.read(rdfStream, "", "RDF/XML-ABBREV");
ExtendedIterator<Individual> individuals = model.listIndividuals();
int individualCount = 0;
while (individuals.hasNext()) {
individualCount++;
}
assertTrue("Should have more than two individuals, but got " +
individualCount, individualCount > 0);