jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject More N3 round trip trouble
Date Sat, 25 Dec 2010 02:31:04 GMT
What follows is an entire N3 doc, which, when read, complains:

com.hp.hpl.jena.n3.turtle.TurtleParseException: Line 15, column 7: =
(owl:sameAs) not legal in Turtle
	at com.hp.hpl.jena.n3.turtle.ParserBase.throwParseException(ParserBase.java:274)
	at com.hp.hpl.jena.n3.turtle.parser.TurtleParser.Verb(TurtleParser.java:237)
	at com.hp.hpl.jena.n3.turtle.parser.TurtleParser.PropertyListNotEmpty(TurtleParser.java:184)
	at com.hp.hpl.jena.n3.turtle.parser.TurtleParser.TriplesSameSubject(TurtleParser.java:130)
	at com.hp.hpl.jena.n3.turtle.parser.TurtleParser.Statement(TurtleParser.java:76)
	at com.hp.hpl.jena.n3.turtle.parser.TurtleParser.parse(TurtleParser.java:46)
	at com.hp.hpl.jena.n3.turtle.ParserTurtle.parse(ParserTurtle.java:37)
	at com.hp.hpl.jena.n3.turtle.TurtleReader.readWorker(TurtleReader.java:21)
	at com.hp.hpl.jena.n3.JenaReaderBase.readImpl(JenaReaderBase.java:101)
	at com.hp.hpl.jena.n3.JenaReaderBase.read(JenaReaderBase.java:68)
	at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:226)
	at com.hp.hpl.jena.ontology.impl.OntModelImpl.read(OntModelImpl.java:2148)

@prefix blob:    <urn:jug:test-doc#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rex:     <http://www.basistech.com/ontologies/2010/6/rex.owl#> .
@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

<urn:jug:test-doc#3>
      a       rex:Person ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "Mark Twain" ;
      rex:hasOriginalText "Mark Twain" ;
      =       <urn:jug:test-doc#4> .

<urn:jug:test-doc#2>
      a       rex:Person ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "Kenneth Branagh" ;
      rex:hasOriginalText "Kenneth Branagh" .

<urn:jug:test-doc#0>
      a       rex:Time ;
      rex:hasEntityDetectionSource
              "regex:eng" ;
      rex:hasNormalizedText
              "one day" ;
      rex:hasOriginalText "one day" .

<urn:jug:test-doc#10>
      a       rex:Person ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "Groucho Marx" ;
      rex:hasOriginalText "Groucho Marx" .

<urn:jug:test-doc#1>
      a       rex:Person ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "George Soros" ;
      rex:hasOriginalText "George Soros" .

<urn:jug:test-doc#5>
      a       rex:Person ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "George Herbert Walker Bush" ;
      rex:hasOriginalText "George Herbert Walker Bush" .

<urn:jug:test-doc#4>
      a       rex:Person ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "Mark Twain" ;
      rex:hasOriginalText "Mark Twain" ;
      =       <urn:jug:test-doc#3> .

<urn:jug:test-doc#6>
      a       rex:Number ;
      rex:hasEntityDetectionSource
              "regex:eng" ;
      rex:hasNormalizedText
              "four" ;
      rex:hasOriginalText "four" .

<urn:jug:test-doc#9>
      a       rex:Person ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "Fredrick Chopin" ;
      rex:hasOriginalText "Fredrick Chopin" .

<urn:jug:test-doc#8>
      a       rex:Location ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "Karl Marx" ;
      rex:hasOriginalText "Karl Marx" .

<urn:jug:test-doc#7>
      a       rex:Person ;
      rex:hasEntityDetectionSource
              "statistical" ;
      rex:hasNormalizedText
              "Herman Melville" ;
      rex:hasOriginalText "Herman Melville" .

Mime
View raw message