Hi Janandith,

On Sat, May 10, 2008 at 5:43 AM, janandith jayawardena
<[EMAIL PROTECTED]> wrote:
> ... Is the repository in Sling accessible like a database directly to a script
>  so the user can query the repository to get the content....

Yes, but not like a database - like a content repository ;-)

For example, with JCR you'll use much more navigation than queries to
get at your data - queries are available, but they're often not
needed, if your content is well structured. The path-based navigation
features of JCR are very fast.

I'd suggest reading
http://www.ibm.com/developerworks/java/library/j-jcr/ for an
introduction to JCR, maybe people have other suggestions? Things are
much easier with Sling than the java examples shown there, but that'd
give you an idea of what JCR provides. And/or read the spec found at
http://jcp.org/en/jsr/detail?id=170 - it is fairly readable.

> ... How can i manually create , modify and remove content and add to the Sling
>  repository without a tool like curl....

Right now we don't have an admin interface that allows you to create
and manage content - there's a plan to donate an explorer module
created by Day to Jackrabbit, but that's not done yet. And there was
another GSoC project to do that, but it didn't happen.

So at the moment it's either curl (or any other http client), copying
stuff into the repository via WebDAV, or writing forms ands scripts
that create content.

You could also try to hook an existing JCR explorer to Sling, for
example http://www.jcr-explorer.org/ . I haven't tried it lately,
though.

>
> ... Also I would like to know what type of content can i add to the repository
>  which can be modified programmatically....

JCR Nodes contain Properties which can be of any type, including
binary...so you can add any type of content.

I hope to create a Sling-based example application soon, maybe a blog
- in the meantime, feel free to ask more questions, or maybe you could
try to create a super-simple blog or content management system to have
a concrete basis for your exploration.

-Bertrand

Reply via email to