original_docstring: All source nodes for a specified arc pointing to a specified node (within any of the specified layers).
docstring: All source nodes for a specified arc pointing to a specified node (within any of the specified layers).
docstring_tokens: All source nodes for a specified arc pointing to a specified node ( within any of the specified layers ) .
code: def rdfGetSourceTriples(target):
  	"""All source nodes for a specified arc pointing to a specified node (within any of the specified layers)."""
  	id = target.id
  	target.sourced = True
  	sources = []
  	fullId = id
  	if	':' in id: #Includes full path or namespaces
  		fullId = id
  	else:
  		fullId = VOCAB + "/" + id
  	
  	targ = fullId
  	if fullId.startswith('http://'):
  		targ = "<%s>" % fullId
  				
  	q = "SELECT ?g ?s ?p  WHERE {GRAPH ?g {?s ?p %s }}" % targ
  
  	try:
  		ROWSLOCK.acquire()
  		res = list(STORE.query(q))
  		#log.info("RESCOUNT %s" % len(res))
  	finally:
  		ROWSLOCK.release()
  
  	for row in res:
  		layer = str(getRevNss(str(row.g)))
  		unit = api.Unit.GetUnit(stripID(row.s))
  		p = stripID(row.p)
  		prop = api.Unit.GetUnit(p,True)
  		obj = api.Unit.GetUnit(stripID(fullId),True)
  		api.Triple.AddTriple(unit, prop, obj, layer)
code_tokens: def rdfGetSourceTriples ( target ) : id = target . id target . sourced = True sources = [ ] fullId = id if ':' in id : fullId = id else : fullId = VOCAB + "/" + id targ = fullId if fullId . startswith ( 'http://' ) : targ = "<%s>" % fullId q = "SELECT ?g ?s ?p  WHERE {GRAPH ?g {?s ?p %s }}" % targ try : ROWSLOCK . acquire ( ) res = list ( STORE . query ( q ) ) finally : ROWSLOCK . release ( ) for row in res : layer = str ( getRevNss ( str ( row . g ) ) ) unit = api . Unit . GetUnit ( stripID ( row . s ) ) p = stripID ( row . p ) prop = api . Unit . GetUnit ( p , True ) obj = api . Unit . GetUnit ( stripID ( fullId ) , True ) api . Triple . AddTriple ( unit , prop , obj , layer )
short_docstring: All source nodes for a specified arc pointing to a specified node (within any of the specified layers).
short_docstring_tokens: All source nodes for a specified arc pointing to a specified node ( within any of the specified layers ) .
comment: """All source nodes for a specified arc pointing to a specified node (within any of the specified layers)."""$SEP$#Includes full path or namespaces$SEP$#log.info("RESCOUNT %s" % len(res))