[oslc-core] Core Specification Version 2.0 Query Syntax: oslc.select/oslc.properties BNF
Arthur Ryman
ryman at ca.ibm.com
Tue Jul 10 07:57:50 EDT 2012
Steven,
I am not following your suggested change completely. However, the current
grammar works with ANTLR [1] and that is a useful characteristic. Please
test any changes with ANTLR.
[1] http://open-services.net/bin/view/Main/MetricsOslcQueryImplementation
Regards,
___________________________________________________________________________
Arthur Ryman
DE, Chief Architect, Reporting &
Portfolio Strategy and Management
IBM Software, Rational
Toronto Lab | +1-905-413-3077 (office) | +1-416-939-5063 (mobile)
From:
Steven B Pitschke <pitschke at us.ibm.com>
To:
oslc-core at open-services.net
Date:
06/29/2012 01:28 PM
Subject:
[oslc-core] Core Specification Version 2.0 Query Syntax:
oslc.select/oslc.properties BNF
Sent by:
oslc-core-bounces at open-services.net
The core query specification
http://open-services.net/bin/view/Main/OSLCCoreSpecQuery
gives a BNFfor select and properties of
oslc_select :== "oslc.select=" properties
properties :== property ( "," property )*
property :== identifier | wildcard | nest_prop
nested_prop := ( identifier | wildcard) "{"
properties "}"
which would allow the redundant "dcterms:name, *". I would think the BNF
would more properly be
oslc_select ::= "oslc.select=" property_list
property_list ::= wildcard | properties
properties ::= property ("," property)*
property ::= identifier | nested_prop
nested_prop ::= (identifier | wildcard) "{" property_list "}"
or
oslc_select ::= "oslc.select=" property_list
property_list ::= wildcard | properties
properties ::= property ("," property)*
property ::= identifier | nested_prop
nested_prop ::= identifier "{" property_list "}"
the difference between the two being whether or not
"*{dcterms:comment,cm:comment}"
makes sense.
Regards,
Steve Pitschke
Senior Software Engineer and Architect
Rational Software, IBM_______________________________________________
Oslc-Core mailing list
Oslc-Core at open-services.net
http://open-services.net/mailman/listinfo/oslc-core_open-services.net
More information about the Oslc-Core
mailing list