4

I am asking just for clarification, may sound silly for some, but i am a newbie to semantic web world :)

From few days i have been experimenting on extracting RDF from HTML, trying to parse it and apply few SPARQL queries on it. I am currently using ARC2 (PHP library).

But can i use the same(ARC2) even if the embedded is OWL?

will i be able to get full advantage of what OWL is intended for using ARC2?

if not what are the alternative libraries for that job (PHP)??

Robert
  • 79
  • 1
  • 7

2 Answers2

2

There's pOWL - also available at SourceForge.net.

There's also RAP, an RDF API for PHP. (It seems that RAP may be more well documented, presently, at its regular web site)

I haven't evaluated either, as yet, granted, but it looks like their respective codebases would be stable, I expect. I thought that I could as well share the links, my having developed a similar question, tonight. Cheers!

Sean Champ
  • 191
  • 2
  • 14
1

There is an RDF mapping to OWL, so you can serialize OWL in any of the RDF formats and any standard RDF parser will be able to handle that. I'm not clear what you mean by "full advantage" but if you mean perform reasoning, then no, probably not. Reasoning doesn't have anything to do with parsing, and I don't think that ARC supports OWL reasoning. For that, you're going to need an actual OWL reasoner such as Pellet or HermiT.

I think ARC supports the ability to query against a SPARQL endpoint, so you could use something like Joseki to stand up an endpoint backed by a reasoner and be able to get some OWL joy that way.

Michael
  • 4,858
  • 19
  • 32
  • Michael, could you maybe suggest a neat way to use any of the parser within a web application? Do I have to look for a Tomcat server provider, or is there a way to wrap the parser somehow and use it on a standard Apache server? – Martin Apr 29 '13 at 23:27
  • Can you create a separate question for this? What are you parsing, what is your web app trying to do, etc. Hard to recommend an approach without complete information. – Michael Apr 30 '13 at 12:42