How to use the link-lib.allRDFPropertyTriples function in link-lib

To help you get started, we’ve selected a few link-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fletcher91 / link-redux / src / react / components / PropertyBase.js View on Github external
export function getLinkedObjectPropertyRaw(property, subject, linkedRenderStore) {
  const props = linkedRenderStore.tryEntity(subject);
  if (Array.isArray(property)) {
    for (let i = 0; i < property.length; i++) {
      const values = allRDFPropertyTriples(props, property[i], true);
      if (typeof values !== 'undefined') return values;
    }
    return undefined;
  }
  return allRDFPropertyTriples(props, property, true);
}
github fletcher91 / link-redux / src / react / components / PropertyBase.js View on Github external
export function getLinkedObjectPropertyRaw(property, subject, linkedRenderStore) {
  const props = linkedRenderStore.tryEntity(subject);
  if (Array.isArray(property)) {
    for (let i = 0; i < property.length; i++) {
      const values = allRDFPropertyTriples(props, property[i], true);
      if (typeof values !== 'undefined') return values;
    }
    return undefined;
  }
  return allRDFPropertyTriples(props, property, true);
}