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

ASF GitHub Bot commented on JENA-1430:
--------------------------------------

Github user afs commented on a diff in the pull request:

    https://github.com/apache/jena/pull/314#discussion_r153745192
  
    --- Diff: 
jena-core/src/main/java/org/apache/jena/assembler/assemblers/AssemblerBase.java 
---
    @@ -63,11 +63,16 @@ protected static RDFNode getUnique( Resource root, 
Property property )
             throw new NotUniqueException( root, property );
             }
     
    -    protected void checkType( Resource root, Resource type )
    -        {
    -        if (!root.hasProperty( RDF.type, type ))
    -            throw new CannotConstructException( this.getClass(), root, 
type );
    -        }
    +    /**
    +     * Throws {@link CannotConstructException} if the offered resource 
isn't any of the offered types.
    +     * 
    +     * @param root resource to check
    +     * @param types types for which to check
    +     */
    +    protected void checkType( Resource root, Resource... types ) {
    +        for (Resource type : types) if (root.hasProperty( RDF.type, type 
)) return;
    --- End diff --
    
    Everything on one line is a bit confusing!


> Quad loading for in-memory assemblers
> -------------------------------------
>
>                 Key: JENA-1430
>                 URL: https://issues.apache.org/jira/browse/JENA-1430
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ
>            Reporter: A. Soroka
>            Assignee: A. Soroka
>
> In-memory dataset Assemblers should support loading quad files.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to