I think that the permissions layer sets
boolean addAllowed( boolean everyTriple );
and
boolean deleteAllowed( boolean everyTriple );

But does not use them directly.

I often wondered what the findContractSafe was.

boolean iteratorRemoveAllowed(); -- not sure of the value here seems like
most code will attempt the remove and then catch any error.

boolean canBeEmpty(); -- This is used by the contract testing, however it
could be moved to the graph producer since it is required for the tests.

boolean handlesLiteralTyping(); -- Not sure about the usefulness of this
method.  If the graph does not do literal typing does it change the way the
higher levels need to work?

Claude


On Sun, Dec 11, 2016 at 6:30 PM, Andy Seaborne <[email protected]> wrote:

> Looking at the Capabilities methods, I think there can be some
> simplification.
>
> I also pretty sure no applications actually use the capabilities features
> but I'm just picking out the safest route in this proposal. Note that
> GraphReadOnly does
>
> Often, the meaning depends on the combination of graphs so for example
> "iteratorRemoveAllowed" all depends.  So it is not reliable.
>
> boolean iteratorRemoveAllowed();
> boolean canBeEmpty();
> boolean handlesLiteralTyping();
>
> This is purely internal:
>
> boolean findContractSafe()
>
> has one use, for bugs that were resolved(?) pre-Apache according to the
> comment. I don't know what the contract is. It is used by InfGraph. There
> is a test but I don't know what it is testing for.
> PrettyWriterTest.test803804 - it just seems to test that the Abbrev graph
> response it to and not the root cause.
>
>
> Not used as far as I can determine:
>
> boolean addAllowed( boolean everyTriple );
>
> This is used by InfGraphs:
>
> boolean deleteAllowed( boolean everyTriple );
>
> though I can't find out what it means.  I pretty sure no app uses it (what
> would it do  in response to "false"?)
>
>
> These seem reasonable or are in-use:
>
> boolean addAllowed();
> boolean deleteAllowed();
> boolean sizeAccuruate();
>
> Proposal:
>
> deprecate prior to removal:
>
>   boolean iteratorRemoveAllowed();
>   boolean canBeEmpty();
>   boolean handlesLiteralTyping();
>   boolean addAllowed( boolean everyTriple );
>   boolean deleteAllowed( boolean everyTriple );
>
>
>         Andy
>
>
> From before:
>
> https://lists.apache.org/thread.html/6d26dd787e5678aa3a9b1f1
> 7194f44a7204425c0f51667d54f8d6bf7@1378035422@%3Cdev.jena.apache.org%3E
>



-- 
I like: Like Like - The likeliest place on the web
<http://like-like.xenei.com>
LinkedIn: http://www.linkedin.com/in/claudewarren

Reply via email to