[overlord-issues] [JBoss JIRA] (ARTIF-625) Support Target#otherAttributes

Brett Meyer (JIRA) issues at jboss.org
Fri Jan 9 10:47:29 EST 2015


    [ https://issues.jboss.org/browse/ARTIF-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031365#comment-13031365 ] 

Brett Meyer commented on ARTIF-625:
-----------------------------------

Ensure adequate coverage of the following queries

A's that own a relationship named "relName" and that relationship includes the "a" otherAttribute.
A[relName[s-ramp:getRelationshipAttribute(.,"a")=1]]

A's that own a relationship named "relName" and that relationship includes the "a" otherAttribute.  The relationship also must target a B with the UUID "foo".
A[relName[s-ramp:getRelationshipAttribute(.,"a")=1 and @uuid="foo"]]

B's that are targeted by a relationship, owned by A w/ the given predicates, named "relName" and that relationship includes the "a" otherAttribute.
A[predicates]/relName[s-ramp:getRelationshipAttribute(.,"a")=1]

All the above also apply to getTargetAttribute (otherAttributes on the Relationship#Target).

Other examples from [~lkrejci], all of which should be supported:
/s-ramp/ext/Vertex[@uuid=A]/r[s-ramp:getTargetAttribute(.,"a")=1]
/s-ramp/ext/Vertex[r[s-ramp:getTargetAttribute(.,"a")=1 and @uuid="B"]]

> Support Target#otherAttributes
> ------------------------------
>
>                 Key: ARTIF-625
>                 URL: https://issues.jboss.org/browse/ARTIF-625
>             Project: Artificer
>          Issue Type: Enhancement
>            Reporter: Brett Meyer
>            Assignee: Brett Meyer
>             Fix For: 1.0
>
>
> Target is currently mapped directly on the sramp:relationship node type, through the following:
> {code}
> - sramp:targetType (string) multiple
> - sramp:relationshipTarget (weakreference) multiple < 'sramp:baseArtifactType'
> {code}
> Instead, that needs pulled out into a separate sramp:target type.  Then, also include the following, necessary for Target#otherAttributes:
> {code}
> - * (string)
> - * (string) multiple
> {code}
> Add support for storing Target#otherAttributes in the visitors.  See Relationship#otherAttributes and SRAMP-622.
> This needs to wait till 1.0 as it's a breaking change in the CND.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the overlord-issues mailing list