Tabnine Logo
PrefixMapping.samePrefixMappingAs
Code IndexAdd Tabnine to your IDE (free)

How to use
samePrefixMappingAs
method
in
com.hp.hpl.jena.shared.PrefixMapping

Best Java code snippets using com.hp.hpl.jena.shared.PrefixMapping.samePrefixMappingAs (Showing top 7 results out of 315)

origin: com.hp.hpl.jena/arq

  public boolean samePrefixMappingAs(PrefixMapping other)
  {
    if ( other == null )
      return false ;
    
    if ( ! ( other instanceof PrefixMapping2 ) )
      return false ;
    
    PrefixMapping2 other2 = (PrefixMapping2)other ;
    
    return this.pmapGlobal.samePrefixMappingAs(other2.pmapGlobal) && 
        this.pmapLocal.samePrefixMappingAs(other2.pmapLocal) ;
  }
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

@Override
public boolean samePrefixMappingAs(PrefixMapping other) {
  return this.prefixes.samePrefixMappingAs(other);
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
public boolean samePrefixMappingAs( PrefixMapping other )
{ return getPrefixMapping().samePrefixMappingAs( other ); }
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

  @Override
  public boolean samePrefixMappingAs(PrefixMapping other)
  {
    if ( other == null )
      return false ;
    
    if ( other instanceof PrefixMapping2 )
    {
      PrefixMapping2 other2 = (PrefixMapping2)other ;
      
      return this.pmapGlobal.samePrefixMappingAs(other2.pmapGlobal) && 
          this.pmapLocal.samePrefixMappingAs(other2.pmapLocal) ;
    }
    
    // Do by map copy.
    return getNsPrefixMap().equals( other.getNsPrefixMap() );
  }
}
origin: epimorphics/elda

@Override public boolean matches( Object got ) {
  return got instanceof PrefixMapping && expected.samePrefixMappingAs( (PrefixMapping) got );
}
origin: com.hp.hpl.jena/arq

public void visitPrologue(Prologue query1)
{
  // This is after parsing so all IRIs in the query have been made absolute.
  // For two queries to be equal, their explicitly set base URIs must be the same. 
  
  String b1 = query1.explicitlySetBaseURI() ? query1.getBaseURI() : null ;
  String b2 = query2.explicitlySetBaseURI() ? query2.getBaseURI() : null ;        
  check("Base URIs", b1, b2) ;
  if ( query1.getPrefixMapping() == null &&
    query2.getPrefixMapping() == null )
    return ;
  check("Prefixes", query1.getPrefixMapping().samePrefixMappingAs(query2.getPrefixMapping())) ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

/** Test whether a Prologue wil perform the same as this one. */
public boolean samePrologue(Prologue other) {
  // Prologue are mutable and superclasses so .equals is left as the default.
  String base1 = explicitlySetBaseURI() ? getBaseURI() : null ;
  String base2 = other.explicitlySetBaseURI() ? other.getBaseURI() : null ;        
  if (! Lib.equal(base1,  base2) )
    return false ;
  if ( getPrefixMapping() == null && other.getPrefixMapping() == null )
    return true ;
  if ( getPrefixMapping() == null )
    return false ;
  return getPrefixMapping().samePrefixMappingAs(other.getPrefixMapping()) ;    
}
com.hp.hpl.jena.sharedPrefixMappingsamePrefixMappingAs

Javadoc

Answer true iff this prefix-mappings are equal, that is, map the same prefixes to the same URIs; same as
this.getNsPrefixMap().equals( other.getNsPrefixMap() )
except that it may avoid unnecessary Map creations.

Popular methods of PrefixMapping

  • getNsPrefixMap
    Return a copy of the internal mapping from names to URI strings. Updating this copy will have no eff
  • setNsPrefix
    Specify the prefix name for a URI prefix string. Any existing use of that prefix name is overwritten
  • getNsPrefixURI
    Get the URI bound to a specific prefix, null if there isn't one.
  • setNsPrefixes
    Copies the prefix mapping from other into this. Illegal prefix mappings are detected. Existing binds
  • getNsURIPrefix
    Answer the prefix for the given URI, or null if there isn't one. If there is more than one, one of t
  • qnameFor
    Answer a qname with the expansion of the given uri, or null if no such qname can be constructed usin
  • expandPrefix
    Expand the uri using the prefix mappings if possible. If prefixed has the form Foo:Bar, and Foo is a
  • shortForm
    Compress the URI using the prefix mappings if possible. If there is a prefix mapping Name -> URIStar
  • lock
    Lock the PrefixMapping so that changes can no longer be made to it. Primarily intended to lock Stand
  • removeNsPrefix
    Remove any existing maplet with the given prefix name and answer this mapping. If the prefix is the
  • withDefaultMappings
    Update this PrefixMapping with the bindings in map, only adding those (p, u) pairs for which neither
  • withDefaultMappings

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now