Here is a small owl example and output i am interested in ... sample example is here:
<?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns="http://www.xfront.com/owl/ontologies/camera/#" xmlns:camera="http://www.xfront.com/owl/ontologies/camera/#" xml:base="http://www.xfront.com/owl/ontologies/camera/"> <owl:Ontology rdf:about=""> <rdfs:comment> Camera OWL Ontology Author: Roger L. Costello </rdfs:comment> </owl:Ontology> <owl:Class rdf:ID="Money"> <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/ owl#Thing"/> </owl:Class> <owl:DatatypeProperty rdf:ID="currency"> <rdfs:domain rdf:resource="#Money"/> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#string"/> </owl:DatatypeProperty> <owl:Class rdf:ID="Range"> <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/ owl#Thing"/> </owl:Class> <owl:DatatypeProperty rdf:ID="min"> <rdfs:domain rdf:resource="#Range"/> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#float"/> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="max"> <rdfs:domain rdf:resource="#Range"/> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#float"/> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="units"> <rdfs:domain rdf:resource="#Range"/> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#string"/> </owl:DatatypeProperty> <owl:Class rdf:ID="Window"> <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/ owl#Thing"/> </owl:Class> <camera:Window rdf:ID="ThroughTheLens"/> <camera:Window rdf:ID="WindowOnTopOfCamera"/> <owl:Class rdf:ID="Viewer"> <owl:oneOf rdf:parseType="Collection"> <camera:Window rdf:about="#ThroughTheLens"/> <camera:Window rdf:about="#WindowOnTopOfCamera"/> </owl:oneOf> </owl:Class> <owl:Class rdf:ID="PurchaseableItem"> <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/ owl#Thing"/> </owl:Class> <owl:ObjectProperty rdf:ID="cost"> <rdfs:domain rdf:resource="#PurchaseableItem"/> <rdfs:range rdf:resource="#Money"/> </owl:ObjectProperty> <owl:Class rdf:ID="Body"> <rdfs:subClassOf rdf:resource="#PurchaseableItem"/> </owl:Class> <owl:Class rdf:ID="BodyWithNonAdjustableShutterSpeed"> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#Body"/> <owl:Restriction> <owl:onProperty rdf:resource="#shutter-speed"/> <owl:cardinality>0</owl:cardinality> </owl:Restriction> </owl:intersectionOf> </owl:Class> <owl:Class rdf:ID="Lens"> <rdfs:subClassOf rdf:resource="#PurchaseableItem"/> </owl:Class> <owl:Class rdf:ID="Camera"> <rdfs:subClassOf rdf:resource="#PurchaseableItem"/> </owl:Class> <owl:Class rdf:ID="SLR"> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="#Camera"/> <owl:Restriction> <owl:onProperty rdf:resource="#viewFinder"/> <owl:hasValue rdf:resource="#ThroughTheLens"/> </owl:Restriction> </owl:intersectionOf> </owl:Class> <owl:Class rdf:ID="Large-Format"> <rdfs:subClassOf rdf:resource="#Camera"/> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="#body"/> <owl:allValuesFrom rdf:resource="#BodyWithNonAdjustableShutterSpeed"/> </owl:Restriction> </rdfs:subClassOf> </owl:Class> <owl:Class rdf:ID="Digital"> <rdfs:subClassOf rdf:resource="#Camera"/> </owl:Class> <owl:ObjectProperty rdf:ID="part"/> <owl:ObjectProperty rdf:ID="lens"> <rdfs:subPropertyOf rdf:resource="#part"/> <rdfs:domain rdf:resource="#Camera"/> <rdfs:range rdf:resource="#Lens"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="body"> <rdfs:subPropertyOf rdf:resource="#part"/> <rdfs:domain rdf:resource="#Camera"/> <rdfs:range rdf:resource="#Body"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="viewFinder"> <rdf:type rdf:resource="http://www.w3.org/2002/07/ owl#FunctionalProperty"/> <rdfs:domain rdf:resource="#Camera"/> <rdfs:range rdf:resource="#Viewer"/> </owl:ObjectProperty> <owl:DatatypeProperty rdf:ID="size"> <rdfs:domain rdf:resource="#Lens"/> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#string"/> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="aperture"> <rdfs:domain rdf:resource="#Lens"/> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#string"/> </owl:DatatypeProperty> <owl:ObjectProperty rdf:ID="compatibleWith"> <rdfs:domain rdf:resource="#Lens"/> <rdfs:range rdf:resource="#Body"/> </owl:ObjectProperty> <owl:ObjectProperty rdf:ID="shutter-speed"> <rdfs:domain rdf:resource="#Body"/> <rdfs:range rdf:resource="#Range"/> </owl:ObjectProperty> <owl:DatatypeProperty rdf:ID="focal-length"> <owl:equivalentProperty rdf:resource="#size"/> <rdfs:domain rdf:resource="#Lens"/> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#string"/> </owl:DatatypeProperty> <owl:DatatypeProperty rdf:ID="f-stop"> <owl:equivalentProperty rdf:resource="#aperture"/> <rdfs:domain rdf:resource="#Lens"/> <rdfs:range rdf:resource="http://www.w3.org/2001/ XMLSchema#string"/> </owl:DatatypeProperty> </rdf:RDF> Output i am intrested in: i am interested in parsing the above example file to get the Classes or Object Properties or DataProperties with some particular conditions on "range" or "domain" or "restrictions" or "subproperty" or "cardinality" or "subclassesof" ....etc On Oct 12, 6:56 pm, vidyadhar <[EMAIL PROTECTED]> wrote: > Hi, > Could some one help me in parsing the .owl file given their > class names in flex. I am able to load the owl file into flex > declaring it as an XML object but unable to parse as did for XML .As > owl is same as a XML I think we should be able to parse the owl same > as XML ... > > Thanks You --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

