src/type-registry.js
/**
 * Returns lists of registry entries for a profile and a given RDF Class.
 * @method typeRegistryForClass
 * @param profile {SolidProfile}
 * @param rdfClass {rdf.NamedNode} RDF Class
 * @return {Array<IndexRegistration>}
 */
Returns lists of registry entries for a profile and a given RDF Class.
@method typeRegistryForClass
@param profile {SolidProfile}
@param rdfClass {rdf.NamedNode} RDF Class
@return {Array}
Returns lists of registry entries for a profile and a given RDF Class . @method typeRegistryForClass @param profile { SolidProfile } @param rdfClass { rdf . NamedNode } RDF Class @return { Array }
function typeRegistryForClass (profile, rdfClass, rdf) {
  var registrations = []
  var isListed = true
  return registrations
    .concat(
      registrationsFromGraph(profile.typeIndexListed.graph, rdfClass, isListed, rdf)
    )
    .concat(
      registrationsFromGraph(profile.typeIndexUnlisted.graph, rdfClass,
        !isListed, rdf)
    )
}
function typeRegistryForClass ( profile , rdfClass , rdf ) { var registrations = [ ] var isListed = true return registrations . concat ( registrationsFromGraph ( profile . typeIndexListed . graph , rdfClass , isListed , rdf ) ) . concat ( registrationsFromGraph ( profile . typeIndexUnlisted . graph , rdfClass , ! isListed , rdf ) ) }
Returns lists of registry entries for a profile and a given RDF Class.
Returns lists of registry entries for a profile and a given RDF Class .
// Public/listed registrations // Private/unlisted registrations