I managed to get a fresnel result tree by calling:

Selection selected = conf.select(dataRepo);

But the results are somehow unpredictable and depend on the order of lenses
in my fresnel.n3 .


So I'm trying to get the resources that I want by calling the select
function with a Resource and a Group:

****************************************************************************
// generate output Document                     
                        Selection selected = conf.select(
                                        dataRepo,
                                        new
URIImpl("http://www.polowinski.de/ontologies/History.owl#Event";),
                                        new Group(new
URIImpl("file:///C:/EigeneDateien2/Projekte/FresnelSubversionProject/data/te
stJan/fresnel.n3#eventGr"))
                        );//, (Resource)obj);
                        selected = conf.format(dataRepo, selected);
****************************************************************************


But now the engine says:

****************************************************************************
edu.mit.simile.fresnel.configuration.NoResultsException: No results from
selection: No lenses matching the data could be found.
        at
edu.mit.simile.fresnel.configuration.Configuration.select(Configuration.java
:770)

[...]
****************************************************************************

I debugged it and unfortunately found everything as I expected it.

The Resource has the uri
"http://www.polowinski.de/ontologies/History.owl#Event";
The Group has the Resource_identifier with uri
"file:///C:/EigeneDateien2/Projekte/FresnelSubversionProject/data/testJan/fr
esnel.n3#eventGr" (is it okay, to have a file reference here?)
And the Sails MemStatementsList of the Repository seems to contain my
instances of ".../History.owl#Event" 


Here is my fresnel configuration file: 

****************************************************************************
@prefix fresnel:    <http://www.w3.org/2004/09/fresnel#> .
@prefix rdf:        <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:       <http://www.w3.org/2000/01/rdf-schema#> .
@prefix facets:
<http://simile.mit.edu/2006/01/ontologies/fresnel-facets#> .
@prefix xsd:            <http://www.w3.org/2001/XMLSchema#> .

@prefix foaf:       <http://xmlns.com/foaf/0.1/> .
@prefix con:        <http://www.w3.org/2000/10/swap/pim/contact#> .
@prefix des-f:
<http://www.polowinski.de/ontologies/Design-Facts.owl#> .
@prefix des:            <http://www.polowinski.de/ontologies/Design.owl#> .
@prefix hist:           <http://www.polowinski.de/ontologies/History.owl#> .
@prefix mid:            <http://www.polowinski.de/ontologies/Middle.owl#> .
@prefix anno:
<http://www.polowinski.de/ontologies/Annotations.owl#> .


@prefix :           <#> .

        
# Events #########################################
##################################################

:eventGr rdf:type fresnel:Group ;
        fresnel:stylesheetLink "styles/event.css" ;
.

# Default Event Lens                    
:eventLens rdf:type fresnel:Lens ;
        fresnel:purpose fresnel:defaultLens ;
        fresnel:classLensDomain hist:Event ;
        fresnel:title rdfs:label;
        fresnel:showProperties
         (
                hist:hasStartTime
                rdfs:comment 
                hist:relatedToFieldOf
         ) ;
        fresnel:group :eventGr ;
.

# Label Event Lens                      
:eventLabelLens rdf:type fresnel:Lens ;
        fresnel:purpose fresnel:labelLens ;
        fresnel:classLensDomain hist:Event ;
        fresnel:showProperties
         (
                rdfs:label
         ) ;
        fresnel:group :eventGr ;
.

****************************************************************************

What could be my mistake? Maybe I can find a working example like this
somewhere? The tests in the fresnel test folder don't make use of
select(Repository, Resource, Group).

Thank you for any help with this and for reading this long post - in case I
should understand it I'm willing to add my experiences to the WIKI... ;)

Jan


--------------------------------------------

Jan Polowinski
Mobil: 0177 2195174
www.jumpingShirts.com

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to