Skip to content

Commit

Permalink
Screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Martynas committed Jun 20, 2013
1 parent bf97043 commit f296900
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Binary file added screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public Injectable<OntModel> getInjectable(ComponentContext cc, Context context)
@Override
public OntModel getValue()
{
return getOntology(uriInfo, resourceConfig);
return getOntology(getUriInfo(), getResourceConfig());
}

};
Expand All @@ -98,7 +98,7 @@ public OntModel getValue()
@Override
public OntModel getContext(Class<?> type)
{
return getOntology(uriInfo, resourceConfig);
return getOntology(getUriInfo(), getResourceConfig());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public UriInfo getUriInfo()
return uriInfo;
}

public Providers getProviders()
{
return providers;
}

@Override
public Injectable<SPARQLEndpoint> getInjectable(ComponentContext cc, Context context)
{
Expand All @@ -74,7 +79,7 @@ public Injectable<SPARQLEndpoint> getInjectable(ComponentContext cc, Context con
@Override
public SPARQLEndpoint getValue()
{
ContextResolver<OntModel> cr = providers.getContextResolver(OntModel.class, null);
ContextResolver<OntModel> cr = getProviders().getContextResolver(OntModel.class, null);
OntModel sitemap = cr.getContext(OntModel.class);

return SPARQLEndpointFactory.createEndpoint(getUriInfo(), getRequest(), getResourceConfig(),
Expand All @@ -86,7 +91,10 @@ public SPARQLEndpoint getValue()
@Override
public SPARQLEndpoint getContext(Class<?> type)
{
OntModel sitemap = OntologyProvider.getOntology(getUriInfo(), getResourceConfig());
//OntModel sitemap = OntologyProvider.getOntology(getUriInfo(), getResourceConfig());
ContextResolver<OntModel> cr = getProviders().getContextResolver(OntModel.class, null);
OntModel sitemap = cr.getContext(OntModel.class);


return SPARQLEndpointFactory.createEndpoint(getUriInfo(), getRequest(), getResourceConfig(),
sitemap);
Expand Down

0 comments on commit f296900

Please sign in to comment.