Marshall Schor (JIRA | 28 Aug 17:22 2014
Picon

[jira] [Commented] (UIMA-3969) Add JSON Serialization for CASs and UIMA Descriptors


    [
https://issues.apache.org/jira/browse/UIMA-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113849#comment-14113849
] 

Marshall Schor commented on UIMA-3969:
--------------------------------------

While refactoring, I see there's a 0-overhead way to computationally know if feature structures have
multiple references to them, independent of the setting of the <multipleReferencesAllowed> attribute
on Features.  So we don't need that flag to tell if some Array or List is multiply referenced or not.  The
existing code does this partially, already, and if it discovers a multiple reference to something that
was being serialized as if it was not multiply referenced, it reports an error, and "truncates" the list
(if it is a list); if it's an array, it loses the object sharing.

I'm planning on a *non-compatible* change to switch this to using the actual knowledge of whether or not an
FS is shared.  This guarantees that correct serialization (all sharing preserved, regardless of the
correct / incorrect use of the <multipleReferencesAllowed> flag.   This could cause some code that
depended on the truncation, or upon the non-sharing (in the case of arrays) to now start to fail...  Please
post a comment if you know of issues this might cause.

I'm thinking that if XmiCasSerialization is the only real use of this flag, then we could deprecate it.

> Add JSON Serialization for CASs and UIMA Descriptors
> ----------------------------------------------------
>
>                 Key: UIMA-3969
>                 URL: https://issues.apache.org/jira/browse/UIMA-3969
>             Project: UIMA
>          Issue Type: New Feature
(Continue reading)

Marshall Schor (JIRA | 28 Aug 17:12 2014
Picon

[jira] [Commented] (UIMA-3969) Add JSON Serialization for CASs and UIMA Descriptors


    [
https://issues.apache.org/jira/browse/UIMA-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113830#comment-14113830
] 

Marshall Schor commented on UIMA-3969:
--------------------------------------

Another facet to this: embedding.  The Xmi has embedding for non-shared lists and arrays.   I don't know if XMI
allows this (I know JSON does), but it's possible Xmi could support embedding for other non-shared
objects, like user-defined feature structures.  Example:
{code:xml}
  <xyz:MyType xmi:id="382">
       <myFeat>
             <xyz:EmbeddedType  xmi:id="404" .... />    <-- a directly embedded FS, otherwise represented via an FsRef integer
       </myFeat>
  </xyz:MyType>
{code}

Consider extending the current implementation to support embedding (at least for JSON) of non-shared FSs
besides lists and arrays.  Also consider making this configurable, that is, having a mode which turns off
all embedding - this would make the representation more uniform, and perhaps easier to parse and handle
(fewer cases to consider) at the cost of some extra bytes. . 

> Add JSON Serialization for CASs and UIMA Descriptors
> ----------------------------------------------------
>
>                 Key: UIMA-3969
>                 URL: https://issues.apache.org/jira/browse/UIMA-3969
>             Project: UIMA
(Continue reading)

Marshall Schor (JIRA | 28 Aug 16:56 2014
Picon

[jira] [Commented] (UIMA-3969) Add JSON Serialization for CASs and UIMA Descriptors


    [
https://issues.apache.org/jira/browse/UIMA-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113817#comment-14113817
] 

Marshall Schor commented on UIMA-3969:
--------------------------------------

During refactoring, found some edge case uses with serializing lists and arrays.  One of these involves an
ambiguity:  If a feature value is [ 123, 456 ] this could be an array of numbers, or an array of FsRefs.  The
context section has a list per type, under the key  <at> featureRefs which says what features ought to be
considered as having FsRefs.  That disambiguates this case.  But it fails in this following case:  the
feature is an collection of integers, e.g., a list or array in UIMA, but because of other constraints, is
being serialized as a separate Feature Structure. In this case the serialized value would be something
like 1234 (which is to be interpreted as a FsRef, not as an integer).  But the  <at> featureRefs doesn't list this
feature as having featureRef values.

To fix this, I'm thinking of augmenting the  <at> featureRef with  <at> featureRefsOnlyIfSingle which would be a
list of features which normally would be expected to have [ xxx,  ] kinds of (not Feature Ref) values, but if
they have just a single number, then that number should be considered to be a FsRef.

> Add JSON Serialization for CASs and UIMA Descriptors
> ----------------------------------------------------
>
>                 Key: UIMA-3969
>                 URL: https://issues.apache.org/jira/browse/UIMA-3969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.6.0SDK
(Continue reading)

Lou DeGenaro (JIRA | 28 Aug 16:48 2014
Picon

[jira] [Reopened] (UIMA-3975) DUCC Web Server (WS) should have System.Broker page(s)


     [
https://issues.apache.org/jira/browse/UIMA-3975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lou DeGenaro reopened UIMA-3975:
--------------------------------

1. Add QueueSize
2. Sort Topics to the top

> DUCC Web Server (WS) should have System.Broker page(s)
> ------------------------------------------------------
>
>                 Key: UIMA-3975
>                 URL: https://issues.apache.org/jira/browse/UIMA-3975
>             Project: UIMA
>          Issue Type: Improvement
>          Components: DUCC
>            Reporter: Lou DeGenaro
>            Assignee: Lou DeGenaro
>             Fix For: 1.1.0-Ducc
>
>
> The DUCC WS should monitor the DUCC broker via its JMX port for pertinent current information and make this
readily available on one or more web pages.

--
This message was sent by Atlassian JIRA
(v6.2#6252)

(Continue reading)

Lou DeGenaro (JIRA | 28 Aug 14:43 2014
Picon

[jira] [Created] (UIMA-3995) Fix compiler warnings in 1.1.0

Lou DeGenaro created UIMA-3995:
----------------------------------

             Summary: Fix compiler warnings in 1.1.0
                 Key: UIMA-3995
                 URL: https://issues.apache.org/jira/browse/UIMA-3995
             Project: UIMA
          Issue Type: Bug
          Components: DUCC
            Reporter: Lou DeGenaro
            Assignee: Lou DeGenaro
            Priority: Trivial
             Fix For: 1.1.0-Ducc

Make elipse happy with java compiler - get rid of yellow triangles!

--
This message was sent by Atlassian JIRA
(v6.2#6252)

Lou DeGenaro (JIRA | 27 Aug 21:53 2014
Picon

[jira] [Reopened] (UIMA-3994) Apache Demo 1.1.0


     [
https://issues.apache.org/jira/browse/UIMA-3994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lou DeGenaro reopened UIMA-3994:
--------------------------------

> Apache Demo 1.1.0
> -----------------
>
>                 Key: UIMA-3994
>                 URL: https://issues.apache.org/jira/browse/UIMA-3994
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>            Reporter: Lou DeGenaro
>            Assignee: Lou DeGenaro
>            Priority: Minor
>             Fix For: 1.1.0-Ducc
>
>
> uima-ducc-demo for 1.0.0, various fix-ups

--
This message was sent by Atlassian JIRA
(v6.2#6252)

Lou DeGenaro (JIRA | 27 Aug 21:53 2014
Picon

[jira] [Closed] (UIMA-3994) Apache Demo 1.1.0


     [
https://issues.apache.org/jira/browse/UIMA-3994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lou DeGenaro closed UIMA-3994.
------------------------------

    Resolution: Fixed

yep, can't get much by you!  thx!

> Apache Demo 1.1.0
> -----------------
>
>                 Key: UIMA-3994
>                 URL: https://issues.apache.org/jira/browse/UIMA-3994
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>            Reporter: Lou DeGenaro
>            Assignee: Lou DeGenaro
>            Priority: Minor
>             Fix For: 1.1.0-Ducc
>
>
> uima-ducc-demo for 1.1.0, various fix-ups

--
This message was sent by Atlassian JIRA
(v6.2#6252)
(Continue reading)

Lou DeGenaro (JIRA | 27 Aug 21:53 2014
Picon

[jira] [Updated] (UIMA-3994) Apache Demo 1.1.0


     [
https://issues.apache.org/jira/browse/UIMA-3994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lou DeGenaro updated UIMA-3994:
-------------------------------

    Description: uima-ducc-demo for 1.1.0, various fix-ups  (was: uima-ducc-demo for 1.0.0, various fix-ups)

> Apache Demo 1.1.0
> -----------------
>
>                 Key: UIMA-3994
>                 URL: https://issues.apache.org/jira/browse/UIMA-3994
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>            Reporter: Lou DeGenaro
>            Assignee: Lou DeGenaro
>            Priority: Minor
>             Fix For: 1.1.0-Ducc
>
>
> uima-ducc-demo for 1.1.0, various fix-ups

--
This message was sent by Atlassian JIRA
(v6.2#6252)

(Continue reading)

Lou DeGenaro (JIRA | 27 Aug 21:01 2014
Picon

[jira] [Closed] (UIMA-3994) Apache Demo 1.1.0


     [
https://issues.apache.org/jira/browse/UIMA-3994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lou DeGenaro closed UIMA-3994.
------------------------------

    Resolution: Fixed

changes delivered.

> Apache Demo 1.1.0
> -----------------
>
>                 Key: UIMA-3994
>                 URL: https://issues.apache.org/jira/browse/UIMA-3994
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>            Reporter: Lou DeGenaro
>            Assignee: Lou DeGenaro
>            Priority: Minor
>             Fix For: 1.1.0-Ducc
>
>
> uima-ducc-demo for 1.0.0, various fix-ups

--
This message was sent by Atlassian JIRA
(v6.2#6252)
(Continue reading)

Lou DeGenaro (JIRA | 27 Aug 20:33 2014
Picon

[jira] [Created] (UIMA-3994) Apache Demo 1.1.0

Lou DeGenaro created UIMA-3994:
----------------------------------

             Summary: Apache Demo 1.1.0
                 Key: UIMA-3994
                 URL: https://issues.apache.org/jira/browse/UIMA-3994
             Project: UIMA
          Issue Type: Bug
          Components: DUCC
            Reporter: Lou DeGenaro
            Assignee: Lou DeGenaro
            Priority: Minor
             Fix For: 1.1.0-Ducc

uima-ducc-demo for 1.0.0, various fix-ups

--
This message was sent by Atlassian JIRA
(v6.2#6252)

John T Green (JIRA | 27 Aug 18:32 2014
Picon

[jira] [Commented] (UIMA-3969) Add JSON Serialization for CASs and UIMA Descriptors


    [
https://issues.apache.org/jira/browse/UIMA-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14112406#comment-14112406
] 

John T Green commented on UIMA-3969:
------------------------------------

Very good

On Wed, Aug 27, 2014 at 2:39 AM, AndyMC@... (Andy McMurry) <

> Add JSON Serialization for CASs and UIMA Descriptors
> ----------------------------------------------------
>
>                 Key: UIMA-3969
>                 URL: https://issues.apache.org/jira/browse/UIMA-3969
>             Project: UIMA
>          Issue Type: New Feature
>          Components: Core Java Framework
>    Affects Versions: 2.6.0SDK
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.6.1SDK
>
>
> Recent trends toward moving things into the cloud motivated me to consider what a JSON serialization of
the CAS and descriptor metadata (more particularly, type systems) might look like.
> I've put up a Wiki page with some of the thoughts so far in this exploration, here:  https://cwiki.apache.org/confluence/display/UIMA/JSON+serialization+for+UIMA
(Continue reading)


Gmane