Returns the {@link JsonPath} to find links with the given relation type.

@param rel
@return
514526
private JsonPath getExpression(LinkRelation rel) {
		return JsonPath.compile(String.format(pathTemplate, rel.value()));
	}
1060833
@JsonIgnore
	public List<Link> getLinks() {

		String url = this.url;

		if (url == null) {
			return Links.NONE.toList();
		}

		return Optional.ofNullable(this.rel) //
				.map(rels -> rels.stream() //
						.map(rel -> new Link(url, rel)) //
						.collect(Collectors.toList())) //
				.orElse(Collections.emptyList());
	}
1262770
protected CmsRelationType getRelationType(String path) {

        CmsRelationType result = getContentDefinition().getContentHandler().getRelationType(path);
        I_CmsXmlDocument document = getDocument();
        if (document != null) {
            // the relations set in the main content definition override relations set in the nested definition
            result = document.getContentDefinition().getContentHandler().getRelationType(getPath(), result);
        } else {
            LOG.warn("Missing document while evaluating relation type for " + path);
        }
        return result;
    }
726242
public static <E, Q extends SimpleExpression<? super E>> CollectionPath<E, Q> collectionPath(Class<E> type, Class<Q> queryType, PathMetadata metadata) {
        return new CollectionPath<E, Q>(type, queryType, metadata);
    }
939245
private JSONObject getJSONFromPath(String path) throws LRException
    {
        JSONObject json = null;
        String jsonTxt = null;
        
        try
        {
            jsonTxt = LRClient.executeJsonGet(importProtocol + "://" + nodeHost + path);
        }
        catch(Exception e)
        {
            throw new LRException(LRException.IMPORT_FAILED);
            //e.printStackTrace();
        }
        
        try
        {
            json = new JSONObject(jsonTxt);
        }
        catch(JSONException e)
        {
            throw new LRException(LRException.JSON_IMPORT_FAILED);
            //e.printStackTrace();
        }

        return json;
    }
1296579
public JCRPath parseJCRPath(String path) throws RepositoryException
   {
      if (isAbsPathParseable(path))
      {
         return parseAbsPath(path);
      }
      else
      {
         return parseRelPath(path);
      }
   }
226877
@Override
	public Optional<Link> findLinkWithRel(LinkRelation rel, String representation) {

		return getLinks(representation).stream() //
				.filter(it -> it.hasRel(rel)) //
				.findFirst();
	}
1102348
def parse_json_path(self, jsonpath):

        
        if jsonpath not in self.parsed:
            try:
                self.parsed[jsonpath] = self.parser(jsonpath)
            except Exception:
                self.log("Invalid Json Path: " + jsonpath, "error")
                raise InvalidJsonPathError("Invalid Json Path")

        return self.parsed[jsonpath]
285587
public List<HalResource> getResourcesByRel(final String rel)
    {
        final List<? extends ReadableRepresentation> resources = representation.getResourcesByRel(rel);

        return resources.stream()
                .map(representation -> new HalResource(objectMapper, representation))
                .collect(Collectors.toList());
    }
200022
public JsonNode getSubAttr(String attrName, String dPath) {
        Lock lock = lockForRead();
        try {
            return JacksonUtils.getValue(getAttribute(attrName), dPath);
        } finally {
            lock.unlock();
        }
    }
617
@JsonProperty("relative_url")
	public String getRelativeURL() {
		StringBuilder bld = new StringBuilder();
		bld.append(this.object);
		
		Param[] params = this.getParams();
		
		if (params != null && params.length > 0) {
			bld.append('?');
			boolean afterFirst = false;
			
			for (Param param: params) {
				if (afterFirst)
					bld.append('&');
				else
					afterFirst = true;
				
				if (param instanceof BinaryParam) {
					//call.addParam(param.name, (InputStream)param.value, ((BinaryParam)param).contentType, "irrelevant");
					throw new UnsupportedOperationException("Not quite sure what to do with BinaryParam yet");
				} else {
					String paramValue = StringUtils.stringifyValue(param, this.mapper);
					bld.append(StringUtils.urlEncode(param.name));
					bld.append('=');
					bld.append(StringUtils.urlEncode(paramValue));
				}
			}
		}
		
		return bld.toString();
	}
1365901
@JsonIgnore
    @SuppressWarnings("unchecked")
    public List<HalRepresentation> getItemsBy(final String rel) {
        if (!hasItem(rel)) {
            return emptyList();
        } else {
            final Object item = items.get(curies.resolve(rel));
            return item instanceof List
                    ? (List<HalRepresentation>) item
                    : singletonList((HalRepresentation) item);
        }
    }
628801
public String getRelationship() {
        String prefixRel = RELS_EXT.uri;
        if (predicate != null && predicate.startsWith(prefixRel)) {
            String rel = "rel:" + predicate.substring(prefixRel.length());
            return rel;
        }
        String prefixModel = MODEL.uri;
        if (predicate != null && predicate.startsWith(prefixModel)) {
            String rel =
                    "fedora-model:" + predicate.substring(prefixModel.length());
            return rel;
        }
        return predicate;
    }
1145984
public String resolve(final String rel) {
        final Optional<CuriTemplate> curiTemplate = matchingCuriTemplateFor(curies, rel);
        return curiTemplate.map(t -> t.curiedRelFrom(rel)).orElse(rel);
    }
207953
public static <V extends SpatialComparable> String getColumnLabel(Relation<? extends V> rel, int col) {
    SimpleTypeInformation<? extends V> type = rel.getDataTypeInformation();
    if(!(type instanceof VectorFieldTypeInformation)) {
      return "Column " + col;
    }
    final VectorFieldTypeInformation<?> vtype = (VectorFieldTypeInformation<?>) type;
    String lbl = vtype.getLabel(col);
    return (lbl != null) ? lbl : ("Column " + col);
  }
377940
public JCRPath createJCRPath(JCRPath parentLoc, String relPath) throws RepositoryException
   {
      JCRPath addPath = parseNames(relPath, false);
      return parentLoc.add(addPath);
   }
1047735
private URL getRelativePath(FacesContext facesContext, String path) throws IOException
    {
        URL url = (URL) _relativePaths.get(path);
        if (url == null)
        {
            url = _factory.resolveURL(facesContext, _src, path);
            if (url != null)
            {
                ViewResource viewResource = (ViewResource) facesContext.getAttributes().get(
                    FaceletFactory.LAST_RESOURCE_RESOLVED);
                if (viewResource != null)
                {
                    // If a view resource has been used to resolve a resource, the cache is in
                    // the ResourceHandler implementation. No need to cache in _relativeLocations.
                }
                else
                {
                    _relativePaths.put(path, url);
                }
            }
        }
        return url;
    }