Lexical Error
Sur unltools version b7e9329d
J'obtient :
$ java -jar unl2rdf-app/target/unl2rdf-app-1.0-SNAPSHOT-jar-with-dependencies.jar --input-file foo1.ttl --output-type dot --output-file foo1
Source file : '/home/david/Work/Projects/Unsel/Unl/unlTools/foo1.ttl'
Exception in thread "main" fr.tetras_libre.unltools.unl.parser.TokenMgrError: Lexical error at line 6, column 67. Encountered: "=" (61), after : ""
at fr.tetras_libre.unltools.unl.parser.UnlParserTokenManager.getNextToken(UnlParserTokenManager.java:1139)
at fr.tetras_libre.unltools.unl.parser.UnlParser.jj_ntk_f(UnlParser.java:662)
at fr.tetras_libre.unltools.unl.parser.UnlParser.node(UnlParser.java:323)
at fr.tetras_libre.unltools.unl.parser.UnlParser.relation(UnlParser.java:198)
at fr.tetras_libre.unltools.unl.parser.UnlParser.relationList(UnlParser.java:242)
at fr.tetras_libre.unltools.unl.parser.UnlParser.sentence(UnlParser.java:95)
at fr.tetras_libre.unltools.unl.parser.UnlParser.structuredElement(UnlParser.java:47)
at fr.tetras_libre.unltools.unl.parser.UnlParser.unlDocument(UnlParser.java:137)
at fr.tetras_libre.unltools.unl.parser.UnlParser.createUnlDocumentList(UnlParser.java:675)
at unl2rdf.Unl2Rdf.runProgram(Unl2Rdf.java:37)
at unl2rdf.Unl2Rdf.main(Unl2Rdf.java:25)
En générant le dot de:
[S:00]
{org:en}
(M) = Mandatory:The requirement shall be respected in every ETCS application.
{/org}
{unl}
mod(m(icl>metric_linear_unit>thing,equ>meter).@entry.@parenthesis,=)
mod(=,mandatory(icl>adj,equ>compulsory).@maiuscul)
obj(respect(icl>consider>be,rsn>thing,obj>thing,aoj>person).@present.@promise,requirement(icl>duty>thing).@def.@topic)
cnt(mandatory(icl>adj,equ>compulsory).@maiuscul,respect(icl>consider>be,rsn>thing,obj>thing,aoj>person).@present.@promise)
mod(application(icl>information,equ>request,agt>thing,obj>uw),every(icl>quantity,per>thing))
mod(application(icl>information,equ>request,agt>thing,obj>uw),etcs)
scn(respect(icl>consider>be,rsn>thing,obj>thing,aoj>person).@present.@promise,application(icl>information,equ>request,agt>thing,obj>uw))
{/unl}
[/S]
[S:00]
{org:en}
The applicable requirements stated in ETCS SRS and lower level mandatory specifications shall be respected., (O) = Optional:It is not mandatory to implement this function in every ETCS application.
{/org}
{unl}
mod(requirement(icl>duty>thing).@def.@pl.@topic,applicable(icl>adj))
obj(state(icl>define>do,agt>thing,obj>thing).@state,requirement(icl>duty>thing).@def.@pl.@topic)
obj(respect(icl>consider>be,rsn>thing,obj>thing,aoj>person),requirement(icl>duty>thing).@def.@pl.@topic)
mod:02(srs.@entry,etcs:01)
and:02(specification(icl>description>thing).@entry.@pl,srs.@entry)
mod(srs.@entry,level(icl>property>abstract_thing,obj>quantity,aoj>thing,scn>uw))
aoj(low_degree_of(icl>adj,aoj>thing),level(icl>property>abstract_thing,obj>quantity,aoj>thing,scn>uw))
mod:02(specification(icl>description>thing).@entry.@pl,mandatory(icl>adj,equ>compulsory):01)
obj(promise(icl>modal>be,obj>uw,aoj>thing).@entry,respect(icl>consider>be,rsn>thing,obj>thing,aoj>person))
mod(respect(icl>consider>be,rsn>thing,obj>thing,aoj>person),o.@maiuscul.@parenthesis)
mod(promise(icl>modal>be,obj>uw,aoj>thing).@entry,=)
mod(=,optional(icl>adj,ant>obligatory).@maiuscul)
aoj(mandatory(icl>adj,equ>compulsory):02.@not.@present,implement(icl>employ>do,agt>thing,obj>thing))
mod:01(function(icl>mathematical_relation>thing),this(icl>determiner>adj,mod<;concrete_thing))
obj:01(implement(icl>employ>do,agt>thing,obj>thing),function(icl>mathematical_relation>thing))
mod:01(application(icl>information,equ>request,agt>thing,obj>uw),every(icl>quantity,per>thing))
mod:01(application(icl>information,equ>request,agt>thing,obj>uw),etcs:02)
scn:01(function(icl>mathematical_relation>thing),application(icl>information,equ>request,agt>thing,obj>uw))
man(low_degree_of(icl>adj,aoj>thing),more(icl>how))
cnt(optional(icl>adj,ant>obligatory).@maiuscul,:01)
plc(state(icl>define>do,agt>thing,obj>thing).@state,:02.@_hn-scope)
{/unl}
[/S]
[S:00]
{org:en}
If implemented, the applicable requirements stated in ETCS SRS and lower level mandatory specifications shall be respected.
{/org}
{unl}
con(respect(icl>consider>be,rsn>thing,obj>thing,aoj>person).@present.@promise,implement(icl>employ>do,agt>thing,obj>thing).@entry)
mod(requirement(icl>duty>thing).@def.@pl.@topic,applicable(icl>adj))
obj(state(icl>define>do,agt>thing,obj>thing).@state,requirement(icl>duty>thing).@def.@pl.@topic)
obj(respect(icl>consider>be,rsn>thing,obj>thing,aoj>person).@present.@promise,requirement(icl>duty>thing).@def.@pl.@topic)
mod(:01.@_hn-scope,etcs)
and:01(level(icl>property>abstract_thing,obj>quantity,aoj>thing,scn>uw).@entry,srs.@entry)
mod(specification(icl>description>thing).@pl,level(icl>property>abstract_thing,obj>quantity,aoj>thing,scn>uw).@entry)
mod(specification(icl>description>thing).@pl,mandatory(icl>adj,equ>compulsory))
plc(state(icl>define>do,agt>thing,obj>thing).@state,specification(icl>description>thing).@pl)
man(low_degree_of(icl>adj,aoj>thing),more(icl>how))
aoj(low_degree_of(icl>adj,aoj>thing),:01.@_hn-scope)
{/unl}
[/S]
[S:00]
{org:en}
Note that the CCS TSI may define specific conditions, where implementation of O functions may be required for safety reasons..
{/org}
{unl}
mod(tsi.@def,ccs)
aoj(suppose(icl>modal>be,obj>uw,aoj>thing),tsi.@def)
aoj(define(icl>characterize>be,obj>uw,aoj>thing),tsi.@def)
obj(note(icl>mention>do,agt>person,obj>uw).@entry.@imperative,suppose(icl>modal>be,obj>uw,aoj>thing))
obj(suppose(icl>modal>be,obj>uw,aoj>thing),define(icl>characterize>be,obj>uw,aoj>thing))
mod(condition(icl>state>abstract_thing,aoj>thing).@pl,specific(icl>adj,equ>particular,ant>general))
obj(define(icl>characterize>be,obj>uw,aoj>thing),condition(icl>state>abstract_thing,aoj>thing).@pl)
plc:02(require(icl>demand>do,agt>volitional_thing,obj>uw,cag>thing).@entry.@present.@grant,where(icl>how,plc<;uw))
obj:02(require(icl>demand>do,agt>volitional_thing,obj>uw,cag>thing).@entry.@present.@grant,implementation(icl>enforcement>thing,equ>execution).@topic)
shd:01(o.@maiuscul,function(icl>mathematical_relation>thing).@entry.@pl)
mod:02(reason(icl>rational_motive>thing).@pl,safety(icl>condition>thing,ant>danger))
pur:02(require(icl>demand>do,agt>volitional_thing,obj>uw,cag>thing).@entry.@present.@grant,reason(icl>rational_motive>thing).@pl)
obj:02(implementation(icl>enforcement>thing,equ>execution).@topic,:01)
{/unl}
[/S]
[S:00]
{org:en}
In the requirements of this document:.
{/org}
{unl}
plc(document(icl>record>do,agt>thing,obj>thing).@entry.@imperative,requirement(icl>duty>thing).@def.@pl)
obj(requirement(icl>duty>thing).@def.@pl,this(icl>thing,equ>it,equ>that))
{/unl}
[/S]
Edited by David Beniamine