[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parser hack



Hi Dan

> FYI here's what I'm doing to get data out of SiRPAC into my database.
> Hope this makes my problem clearer. Am I doing something silly?

Your example looks good to me. That's exactly how I expect to embed
SiRPAC into other apps.

Now, back to your question - I'm afraid I didn't reply to it - about
the literal vs. resource distinction in triples. That is something
I think I could do. Now, in logic programs, where I originally wanted
to use the triples, the distinction is a bit more complicated to make.

A quick application-level solution could be to model each individual
slot in the triple as a separate Java class. Then, I could attach
the information during the parsing process whether it is a node or
a value. Other applications could then take advantage of this feature.

Of course, you would like to have this running asap? :-)
Let me collect couple of more wishes and I'll get into it.

Janne
--
Janne Saarela           | Visiting scientist
Email: jsaarela@w3.org  | World Wide Web Consortium http://www.w3.org/