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

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

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

    https://github.com/apache/jena/pull/431#discussion_r194398068
  
    --- Diff: 
jena-arq/src/main/java/org/apache/jena/sparql/graph/PrefixMappingOver.java ---
    @@ -0,0 +1,97 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.jena.sparql.graph;
    +
    +import java.util.Map;
    +import java.util.Map.Entry;
    +import java.util.Objects;
    +import java.util.function.BiConsumer;
    +
    +import org.apache.jena.iri.IRI;
    +import org.apache.jena.riot.system.PrefixMap;
    +
    +public class PrefixMappingOver extends PrefixMappingBase {
    --- End diff --
    
    Its real name is `PrefixMappingOverPrefixMap` ... seemed a bit long and 
confusing.
    
    It does not seem to be a decorator.  Would "Adapter" be OK?



> Avoid unnecessary prefix loading in GraphPrefixesProjection 
> ------------------------------------------------------------
>
>                 Key: JENA-1559
>                 URL: https://issues.apache.org/jira/browse/JENA-1559
>             Project: Apache Jena
>          Issue Type: Task
>    Affects Versions: Jena 3.7.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>
> {{GraphPrefixesProjection}} loads all prefixes from the database (JENA-81). 
> It was done that way because {{PrefixMappingImpl}} has internal 
> datastructures that are not passing through lookup misses. 
> Load as needed and rework the way the prefix implementation to cleanly 
> separate algorithms from storage.
> Leave {{PrefixMappingImpl}} untouched - its name and details are too 
> well-known.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to