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

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

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

origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

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

@Override
public PrefixMapping withDefaultMappings( PrefixMapping other )
{
  getPrefixMapping().withDefaultMappings( other );
  return this;
}
origin: epimorphics/elda

/**
   Scan the given vocabulary file to find shortname and property type
   annotations. Ignore any URIs in <code>notThese</code>. Update
   notThese with any new URIs once we're done.
*/
public void loadVocabularyAnnotations( Set<String> notThese, Model m, PrefixMapping prefixes) {  
  allPrefixes.withDefaultMappings( prefixes );
  Set<String> seen = new HashSet<String>();
  for(Resource r : RES_TYPES_TO_SHORTEN) 
    loadAnnotations(notThese, seen, m.listSubjectsWithProperty(RDF.type, r), false, prefixes);
  for(Resource r : PROP_TYPES_TO_SHORTEN) 
    loadAnnotations(notThese, seen, m.listSubjectsWithProperty(RDF.type, r), true, prefixes);
  loadAnnotations(notThese, seen, m.listSubjectsWithProperty(API.label), false, prefixes);
  loadAnnotations(notThese, seen, m.listSubjectsWithProperty(RDFS.range), true, prefixes);
  notThese.addAll( seen );
}
 
com.hp.hpl.jena.sharedPrefixMappingwithDefaultMappings

Javadoc

Update this PrefixMapping with the bindings in map, only adding those (p, u) pairs for which neither p nor u appears in this mapping. Answer this PrefixMapping.

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
  • samePrefixMappingAs
    Answer true iff this prefix-mappings are equal, that is, map the same prefixes to the same URIs; sam
  • 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
  • removeNsPrefix

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Reference (javax.naming)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text plugins
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