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

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

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

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

/**
 * Register a set of prefix to namespace mappings with the parser
 */
public void registerPrefixMap(Map<String, String> map) {
  prefixMapping.setNsPrefixes(map);
}

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

/** @see com.hp.hpl.jena.shared.PrefixMapping#setNsPrefixes(com.hp.hpl.jena.shared.PrefixMapping) */
@Override
public PrefixMapping setNsPrefixes(PrefixMapping other)
{
  pmapLocal.setNsPrefixes(other) ;
  return this ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

/** @see com.hp.hpl.jena.shared.PrefixMapping#setNsPrefixes(java.util.Map) */
@Override
public PrefixMapping setNsPrefixes(Map<String, String> map)
{
  pmapLocal.setNsPrefixes(map) ;
  return this;
}
origin: com.hp.hpl.jena/arq

/** @see com.hp.hpl.jena.shared.PrefixMapping#setNsPrefixes(java.util.Map) */
public PrefixMapping setNsPrefixes(Map<String, String> map)
{
  pmapLocal.setNsPrefixes(map) ;
  return this;
}
origin: com.hp.hpl.jena/arq

/** @see com.hp.hpl.jena.shared.PrefixMapping#setNsPrefixes(com.hp.hpl.jena.shared.PrefixMapping) */
public PrefixMapping setNsPrefixes(PrefixMapping other)
{
  pmapLocal.setNsPrefixes(other) ;
  return this ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Register a set of new prefix/namespace mapping which will be used to shorten
 * the print strings for resources in known namespaces.
 */
public static void registerPrefixMap(Map<String, String> map) {
  prefixMapping.setNsPrefixes( map );
}

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

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

@Override
public PrefixMapping setNsPrefixes(Map<String, String> map) {
  return this.prefixes.setNsPrefixes(map);
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
public PrefixMapping setNsPrefixes( PrefixMapping pm )
{ 
  getPrefixMapping().setNsPrefixes( pm );
  return this;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
public PrefixMapping setNsPrefixes( Map<String, String> map )
{ 
  getPrefixMapping().setNsPrefixes( map ); 
  return this;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Set the default prefix mappings.
 */
protected void setDefaultPrefixMappings() {
  m_prefixMap.setNsPrefixes( PrefixMapping.Standard );
  // PrefixMapping.Standard includes dc:, which OntModels traditionally haven't included
  m_prefixMap.removeNsPrefix( "dc" );
}
origin: epimorphics/elda

  public JSONPropertyNaming(PrefixMapping given) {
    this.pm = PrefixMapping.Factory.create()
      .setNsPrefixes( given )
//            .withDefaultMappings( Prefixes.various )
      ;
  }    
  
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
  When the graph is constructed, copy the prefix mappings of both components
  into this prefix mapping. The prefix mapping doesn't change afterwards with the
  components, which might be regarded as a bug.
*/
public Dyadic( Graph L, Graph R )
  {
  this.L = L;
  this.R = R;
  getPrefixMapping()
    .setNsPrefixes( L.getPrefixMapping() )
    .setNsPrefixes( R.getPrefixMapping() )
    ;
  }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
  Add the bindings in the map to our own. This will fail with a ClassCastException
  if any key or value is not a String; we make no guarantees about order or
  completeness if this happens. It will fail with an IllegalPrefixException if
  any prefix is illegal; similar provisos apply.
  
   @param other the Map whose bindings we are to add to this.
*/
@Override public PrefixMapping setNsPrefixes( Map<String, String> other )
  {
  checkUnlocked();
  getBaseMapping().setNsPrefixes( other );
  return this;
  }
   
origin: com.hp.hpl.jena/arq

public Prologue copy()
{
  PrefixMapping prefixMap = new PrefixMappingImpl() ;
  prefixMap.setNsPrefixes(this.prefixMap) ;
  return new Prologue(prefixMap, resolver.getBaseIRI()) ;
}
 
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public Prologue copy()
{
  PrefixMapping prefixMap = new PrefixMappingImpl() ;
  prefixMap.setNsPrefixes(this.prefixMap) ;
  return new Prologue(prefixMap, resolver.getBaseIRI()) ;
}

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

@Override
protected PrefixMapping createPrefixMapping()
{
  PrefixMapping pmap = new PrefixMappingImpl() ;
  for ( Node gn : graphs )
  {
    if ( ! gn.isURI() ) continue ;
    Graph g = dataset.getGraph(gn) ;
    PrefixMapping pmapNamedGraph = g.getPrefixMapping() ;
    pmap.setNsPrefixes(pmapNamedGraph) ;
  }
  return pmap ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

private static void includePrefixesFor( Assembler a, Resource root, PrefixMapping result, Property includeUsing )
  {
  for (StmtIterator it = root.listProperties( includeUsing ); it.hasNext();)
    {
    Statement s = it.nextStatement();
    PrefixMapping sub = (PrefixMapping) a.open( getResource( s ) );
    result.setNsPrefixes( sub );
    }
  }
origin: epimorphics/elda

private PrefixMapping prefixes( APIResultSet rs ) {
  return PrefixMapping.Factory.create()
    .setNsPrefixes(rs.getMergedModel())
    .setNsPrefixes( PrefixMapping.Extended )
    .setNsPrefix( "terms", "http://purl.org/dc/terms/" )
    .setNsPrefix( "dum", "http://dummy/doc/schools" )
    .setNsPrefix( "dumx", "http://dummy//doc/schools" )
    ;
}

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

/**
  Answer the full model of <code>m</code>, with all its imports included and
  with the necessary properties added from the JA schema. However, if
  the magic footprint triple (ja:this, rdf:type, ja:Expanded) is present in the
  model, it is returned unchanged. Imports are managed by <code>im</code>.
*/
public static Model fullModel( ImportManager im, Model m )
  {
  return m.contains( JA.This, RDF.type, JA.Expanded )
    ? m
    : (Model) ModelExpansion.withSchema( im.withImports( m ), JA.getSchema() )
      .add( JA.This, RDF.type, JA.Expanded )
      .setNsPrefixes( PrefixMapping.Extended )
      .setNsPrefixes( m )
    ;
  }

com.hp.hpl.jena.sharedPrefixMappingsetNsPrefixes

Javadoc

Copies the prefixes from other into this. Any existing binding of the same prefix is lost. The result is this same 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.
  • 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
  • withDefaultMappings
    Update this PrefixMapping with the bindings in map, only adding those (p, u) pairs for which neither
  • withDefaultMappings

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFileChooser (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
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