
| Key: |
SES-664
|
| Type: |
Improvement
|
| Status: |
Open
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
Simon Reinhardt
|
| Votes: |
0
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
Sesame
Created: 03/Mar/09 10:12 PM
Updated: 03/Mar/09 10:13 PM
|
|
| Component/s: |
RDF Model
|
| Affects Version/s: |
3.0
|
| Fix Version/s: |
None
|
|
While trying to output a Graph into a HTML page using a template engine I was missing some things so I extended it. Some of that has been added in the new Model class now (namespace mappings), here's the rest:
- A base URI property would be useful but I'm more than unsure now if that's a property of the Graph/Model after all. You don't have relative URIs in statements so this would only be information for the template.
- A "resource of interest" property. Typically when you output pages from graph data you have a resource that the page is a description of. This could coincide with the base URI when the described resource is an information resource and therefore the same as the description. It would generally be different in all other cases (http://dbpedia.org/resource/Cambridge vs. http://dbpedia.org/page/Cambridge). The resource of interest basically provides a starting point for traversing the graph.
- A method addAll(Model other) which, apart from calling addAll((Set<Statement>)other) (to add the other model's statements) also merges the other model's namespace mappings into the current one, overwriting existing ones.
I'm attaching versions of Model.java and LinkedHashModel.java where this is implemented.
|
|
|
There are no comments yet on this issue.
|
| |
|
|