Layering Frames on SailGraph is a neat idea. Like OpenRDF Elmo for
Blueprints. I have just checked in a Frames test case which explores
that idea and provides an example:
Is that more or less what you had in mind?
Thanks.
Josh
It would be great if we could define a namespace with an annotation -
@Namespace("http://www.w3.org/2004/02/skos/core#") - so we then could
just add a @Relation(label="prefLabel") for instance.
Is it possible to use a class instead of an interface as frame model?
That would allow us to override the implementation of the methods. So
we could return a special Label object when calling getPrefLabel()?
Thank you so far
Kind regards
---
Thomas FRITZ
web http://fritzthomas.com
twitter http://twitter.com/thomasf
2011/8/5 Joshua Shinavier <jo...@fortytwo.net>:
Actually the annotation for namespaces has to be something like this i think:
@Namespace({
"skos","http://www.w3.org/2004/02/skos/core#",
"rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
})
A more concrete use case example for such a skos frame model where a
concrete class would be better than an interface:
@Namespace({"skos","http://www.w3.org/2004/02/skos/core#", "rdf",
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"})
private class Concept extends RDFFrame {
@Relation(label = "skos:narrower")
public abstract Collection<Concept> getNarrower();
@Relation(label = "skos:prefLabel")
public abstract Collection<PrefLabel> getPrefLabels();
public Collection<PrefLabel> getPrefLabels(String language) {
// Implementation: Return only PrefLabels in the requested
language. For instance "en"
}
}
I do not know if that works with abstract methods. So sorry for my ignorance.
Kind regards.
---
Thomas FRITZ
web http://fritzthomas.com
twitter http://twitter.com/thomasf
2011/8/8 Thomas Fritz <frit...@gmail.com>: