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

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

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

origin: org.openrdf.sesame/sesame-model

/**
 * Compares two RDF models, and returns <tt>true</tt> if the first model is a
 * subset of the second model, using graph isomorphism to map statements
 * between models.
 */
public static boolean isSubset(Iterable<? extends Statement> model1,
    Iterable<? extends Statement> model2)
{
  // Filter duplicates
  Set<? extends Statement> set1 = toSet(model1);
  Set<? extends Statement> set2 = toSet(model2);
  return isSubset(set1, set2);
}
origin: org.openrdf.sesame/sesame-rio-testsuite

if (model.size() != parsedModel.size()) {
  if (model.size() < 1000) {
    boolean originalIsSubset = Models.isSubset(model, parsedModel);
    boolean parsedIsSubset = Models.isSubset(parsedModel, model);
    System.out.println("originalIsSubset=" + originalIsSubset);
    System.out.println("parsedIsSubset=" + parsedIsSubset);
org.openrdf.model.utilModelsisSubset

Javadoc

Compares two RDF models, and returns true if the first model is a subset of the second model, using graph isomorphism to map statements between models.

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
  • objectResource
    Retrieves an object Resource value from the statements in the given model. If more than one possible
  • 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

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • String (java.lang)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top plugins for Android Studio
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