Tabnine Logo
Models.objectResource
Code IndexAdd Tabnine to your IDE (free)

How to use
objectResource
method
in
org.openrdf.model.util.Models

Best Java code snippets using org.openrdf.model.util.Models.objectResource (Showing top 3 results out of 315)

origin: org.openrdf.sesame/sesame-model

/**
 * @deprecated since 4.0. Use {@link #objectResource(Model)} instead.
 */
@Deprecated
public static Resource anyObjectResource(Model m) {
  return objectResource(m).orElse(null);
}
origin: org.openrdf.sesame/sesame-repository-sail

  @Override
  public void parse(Model model, Resource repImplNode)
    throws RepositoryConfigException
  {
    try {
      Optional<Resource> sailImplNode = Models.objectResource(model.filter(repImplNode, SAILIMPL, null));
      if (sailImplNode.isPresent()) {
        Models.objectLiteral(model.filter(sailImplNode.get(), SAILTYPE, null)).ifPresent(typeLit -> {
          SailFactory factory = SailRegistry.getInstance().get(typeLit.getLabel()).orElseThrow(
              () -> new RepositoryConfigException("Unsupported Sail type: " + typeLit.getLabel()));

          sailImplConfig = factory.getConfig();
          sailImplConfig.parse(model, sailImplNode.get());
        });
      }
    }
    catch (ModelException e) {
      throw new RepositoryConfigException(e.getMessage(), e);
    }
    catch (SailConfigException e) {
      throw new RepositoryConfigException(e.getMessage(), e);
    }
  }
}
origin: org.openrdf.sesame/sesame-sail-inferencer

Optional<Resource> object = Models.objectResource(m.filter(implNode, RULE_QUERY, null));
if (object.isPresent()) {
  Models.objectLiteral(m.filter(object.get(), SP.TEXT_PROPERTY, null)).ifPresent(
object = Models.objectResource(m.filter(implNode, MATCHER_QUERY, null));
if (object.isPresent()) {
  Models.objectLiteral(m.filter(object.get(), SP.TEXT_PROPERTY, null)).ifPresent(
org.openrdf.model.utilModelsobjectResource

Javadoc

Retrieves an object Resource value from the statements in the given model. If more than one possible Resource value exists, any one Resource value is picked and returned.

Popular methods of Models

  • objectLiteral
    Retrieves an object Literal value from the statements in the given model. If more than one possible
  • isomorphic
    Compares two RDF models, and returns true if they consist of isomorphic graphs and the isomorphic gr
  • objectIRI
    Retrieves an object IRI value from the statements in the given model. If more than one possible IRI
  • isSubset
    Compares two RDF models, and returns true if the first model is a subset of the second model, using
  • findMatchingStatements
  • isSubsetInternal
  • matchModels
  • object
    Retrieves an object Value from the statements in the given model. If more than one possible object v
  • predicate
    Retrieves a predicate from the statements in the given model. If more than one possible predicate va
  • statementsMatch
  • subject
    Retrieves a subject Resource from the statements in the given model. If more than one possible resou
  • subjectBNode
    Retrieves a subject BNode from the statements in the given model. If more than one possible blank no
  • subject,
  • subjectBNode,
  • subjectIRI,
  • toSet

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 12 Jupyter Notebook extensions
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