Tabnine Logo
com.hp.hpl.jena.shared
Code IndexAdd Tabnine to your IDE (free)

How to use com.hp.hpl.jena.shared

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

origin: epimorphics/elda

  public JSONPropertyNaming(PrefixMapping given) {
    this.pm = PrefixMapping.Factory.create()
      .setNsPrefixes( given )
//            .withDefaultMappings( Prefixes.various )
      ;
  }    
  
origin: com.hp.hpl.jena/arq

  /** Use the prefix map to turn a URI into a qname, or return the original URI */
  
  public String shortForm(String uri)
  {
    return prefixMap.shortForm(uri) ;
  }
}
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#getNsPrefixURI(java.lang.String) */
@Override
public String getNsPrefixURI(String prefix)
{
  String s = pmapLocal.getNsPrefixURI(prefix) ;
  if ( s != null )
    return s ;
  if ( pmapGlobal != null )
    return pmapGlobal.getNsPrefixURI(prefix) ;
  return null ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
 * Register a new prefix/namespace mapping which will be used to shorten
 * the print strings for resources in known namespaces.
 */
public static void registerPrefix(String prefix, String namespace) {
  prefixMapping.setNsPrefix( prefix, namespace );
}

origin: com.hp.hpl.jena/arq

/** @see com.hp.hpl.jena.shared.PrefixMapping#qnameFor(java.lang.String) */
public String qnameFor(String uri)
{
  String s = pmapLocal.qnameFor(uri) ;
  if ( pmapGlobal == null )
    return s ;
  if ( s != null )
    return s ;
  if ( pmapGlobal != null )
    return pmapGlobal.qnameFor(uri) ;
  return null ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

/**
   Add a triple to the triple store. The default implementation throws an
   AddDeniedException; subclasses must override if they want to be able to
   add triples.
*/
@Override
public void performAdd( Triple t )
  { throw new AddDeniedException( "GraphBase::performAdd" ); }
origin: org.apache.clerezza.ext/org.apache.jena.jena-core

protected StatementBase( ModelCom model )
  {
  if (model == null) throw new JenaException( "Statement models must no be null" );
  this.model = model;
  }
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: com.hp.hpl.jena/arq

/**
    Remove a triple from the triple store. The default implementation throws
    a DeleteDeniedException; subclasses must override if they want to be able
    to remove triples.
 */
public void performDelete( Triple t ) 
{ throw new DeleteDeniedException( "GraphBase::delete" ); }
origin: com.hp.hpl.jena/arq

/** @see com.hp.hpl.jena.shared.PrefixMapping#lock() */
public PrefixMapping lock()
{
  pmapLocal.lock() ;
  return this;
}
origin: com.hp.hpl.jena/arq

/**
    Utility method: throw a ClosedException if this graph has been closed.
 */
protected void checkOpen()
{ if (closed) throw new ClosedException( "already closed", this ); }
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: com.hp.hpl.jena/arq

/** @see com.hp.hpl.jena.shared.PrefixMapping#getNsPrefixURI(java.lang.String) */
public String getNsPrefixURI(String prefix)
{
  String s = pmapLocal.getNsPrefixURI(prefix) ;
  if ( s != null )
    return s ;
  if ( pmapGlobal != null )
    return pmapGlobal.getNsPrefixURI(prefix) ;
  return null ;
}
origin: com.hp.hpl.jena/arq

/** @see com.hp.hpl.jena.shared.PrefixMapping#setNsPrefix(java.lang.String, java.lang.String) */
public PrefixMapping setNsPrefix(String prefix, String uri)
{
  pmapLocal.setNsPrefix(prefix, uri) ;
  return this ;
}
origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

/** Use the prefix map to turn a URI into a qname, or return the original URI */

public String shortForm(String uri)
{
  return prefixMap.shortForm(uri) ;
}

origin: com.hp.hpl.jena/arq

/**
    Add a triple to the triple store. The default implementation throws an
    AddDeniedException; subclasses must override if they want to be able to
    add triples.
 */
public void performAdd( Triple t )
{ throw new AddDeniedException( "GraphBase::performAdd" ); }
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

/** Lookup a prefix for this query, including the default prefixes */
public String getPrefix(String prefix)
{
  return prefixMap.getNsPrefixURI(prefix) ;
}
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 ;
}
com.hp.hpl.jena.shared

Most used classes

  • PrefixMapping
    Methods for recording namepsace prefix mappings and applying and unapplying them to URIs. Note that
  • JenaException
    This should be a superclass of exceptions arising from Jena code.
  • Lock
  • PrefixMapping$Factory
    Factory class to create an unspecified kind of PrefixMapping.
  • AddDeniedException
    Exception to throw for a denied add operation
  • NotFoundException,
  • PrefixMappingImpl,
  • JenaUUID,
  • UUID_V1_Gen,
  • UUID_V4_Gen,
  • AlreadyReifiedException,
  • BrokenException,
  • CannotReifyException,
  • ClosedException,
  • DoesNotExistException,
  • NoWriterForLangException,
  • WrappedException,
  • WrappedIOException,
  • AlreadyExistsException
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