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

Reto Bachmann-Gmür commented on STANBOL-946:
--------------------------------------------

I've added a patch that allows to add rdf files ("ttl, "turtle and *.rdf) to 
META-INF/graphs/recipies that looklike this

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix recipe: <http://vocab.netlabs.org/recipe#> .

[] a recipe:Recipe;
  recipe:ingredient
    [a recipe:Ingredient;
        recipe:ingredientInverseProperty 
<http://stanbol.apache.org/ontology/entityhub/entityhub#about>],
    [a recipe:Ingredient;
        recipe:ingredientProperty 
<http://example.org/service-description#describes>];
  recipe:recipeDomain "path/to/rdf-viewable/template" .

What's not so nice that RdfViewable takls about "template" which now becomes 
something more general. Also I'm not sure if recipies/templates shouldn't be 
identified by URIs rather than strings. But then which URI-scheme should be 
used?
                
> Make it possible to define expansion of RdfViewable by resource method
> ----------------------------------------------------------------------
>
>                 Key: STANBOL-946
>                 URL: https://issues.apache.org/jira/browse/STANBOL-946
>             Project: Stanbol
>          Issue Type: New Feature
>          Components: Web
>            Reporter: Adrian Gschwend
>            Assignee: Reto Bachmann-Gmür
>            Priority: Minor
>
> According to 
> https://svn.apache.org/viewvc/stanbol/trunk/commons/web/rdfviewable-writer/src/main/java/org/apache/stanbol/commons/web/viewable/ldpath/writer/impl/RdfSerializingWriter.java?view=markup&pathrev=1447265:
> "the expansion can be widened by using the query parameters xPropObj and 
> xProSubj"
> It would be nice if I could specify that a bit more fine grained on the 
> server side. From what I get templatePath is used for the HTML export to have 
> more influence on how the result values looks like. I would like to have a 
> similar functionality for RDF representations.
> I do something similar in a framework for interfacing RDF based data. In 
> there I use so called Recipes to define on which rdf:Properties I'm 
> interested in. The current vocab can be found here: 
> http://vocab.netlabs.org/recipe. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to