You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Sergio Fernández (JIRA)" <ji...@apache.org> on 2014/05/23 09:05:02 UTC

[jira] [Comment Edited] (MARMOTTA-505) Add a LDPath function to access response headers, which may contain useful information

    [ https://issues.apache.org/jira/browse/MARMOTTA-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005924#comment-14005924 ] 

Sergio Fernández edited comment on MARMOTTA-505 at 5/23/14 7:04 AM:
--------------------------------------------------------------------

Then I'd propose that you can move such concrete requirement to a non-official LDPath Functions. New functions can be easily plug-in via ServiceLoader, see for instance: https://git-wip-us.apache.org/repos/asf?p=marmotta.git;a=blob;f=libraries/ldpath/ldpath-functions-html/src/main/resources/META-INF/services/org.apache.marmotta.ldpath.api.functions.SelectorFunction;h=f183d71b23433ee2f4abc11033cc763bbd60ab27;hb=refs/heads/develop


was (Author: wikier):
Then I'd propose that you can move such concrete requirement to a LDPath Functions. New functions can be easily plug-in via ServiceLoader, see for instance: https://git-wip-us.apache.org/repos/asf?p=marmotta.git;a=blob;f=libraries/ldpath/ldpath-functions-html/src/main/resources/META-INF/services/org.apache.marmotta.ldpath.api.functions.SelectorFunction;h=f183d71b23433ee2f4abc11033cc763bbd60ab27;hb=refs/heads/develop

> Add a LDPath function to access response headers, which may contain useful information
> --------------------------------------------------------------------------------------
>
>                 Key: MARMOTTA-505
>                 URL: https://issues.apache.org/jira/browse/MARMOTTA-505
>             Project: Marmotta
>          Issue Type: New Feature
>          Components: LDCache, LDClient, LDPath
>    Affects Versions: 3.2.1
>            Reporter: Chris Beer
>            Assignee: Jakob Frank
>             Fix For: 3.3.0
>
>
> Some linked data resources that I'm requesting have important information in their HTTP headers. I would like to access those headers from an LDPath program.
> To do so, I expanded the LDCache and LDClient APIs to support exposing headers to a newly created LDPath function. 
> {code}
> content_type = fn:header("Content-Type") :: xsd:string ;
> /* content_type = {application/rdf+xml} */
> {code}
> https://github.com/apache/marmotta/pull/6



--
This message was sent by Atlassian JIRA
(v6.2#6252)