I'm trying to import an Ecore UML file (generated from MagicDraw)
using the method described at
http://composing-the-semantic-web.blogspot.com/2010/03/converting-uml-files-to-rdf-via-javaemf.html
. Below are the OWL and UML files that I'm working with. The script
executes without errors, resulting in this console output:
08:39:16.225: Preparing execution (collecting garbage)...
08:39:17.193: Compiling script...
08:39:17.193: Executing script...
08:39:17.193: - import ecore
08:39:17.520: - convert to rdf
08:39:17.520: Finished executing SPARQLMotion script.
Result variables of convert to rdf:
- uml = [org.eclipse.emf.ecore.impl.epackagei...@981055 (name:
Security 2) (nsURI: null, nsPrefix: null)]
However, no triples are generated, as verified in the 'SPARQLMotion
Results' pane and the 'Classes' pane. What am I missing here?
OWL FILE
<?xml version="1.0"?>
<rdf:RDF
xmlns:sxml="http://topbraid.org/sxml#"
xmlns="http://test.com/SecurityIngest#"
xmlns:uml="http://schema.omg.org/spec/UML/2.2#"
xmlns:UML_Standard_Profile="http://www.magicdraw.com/schemas/
UML_Standard_Profile.xmi#"
xmlns:s="http://alionscience.com/security#"
xmlns:MagicDraw_Profile="http://www.magicdraw.com/schemas/
MagicDraw_Profile.xmi#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:spin="http://spinrdf.org/spin#"
xmlns:sp="http://spinrdf.org/sp#"
xmlns:Validation_Profile="http://www.magicdraw.com/schemas/
Validation_Profile.xmi#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:sml="http://topbraid.org/sparqlmotionlib#"
xmlns:DSL_Customization="http://www.magicdraw.com/schemas/
DSL_Customization.xmi#"
xmlns:sm="http://topbraid.org/sparqlmotion#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xml:base="http://test.com/SecurityIngest">
<owl:Ontology rdf:about="">
<owl:versionInfo rdf:datatype="http://www.w3.org/2001/
XMLSchema#string"
>Created with TopBraid Composer</owl:versionInfo>
<owl:imports rdf:resource="http://topbraid.org/sparqlmotionlib"/>
<owl:imports rdf:resource="http://topbraid.org/
sparqlmotionfunctions"/>
</owl:Ontology>
<sml:ImportJavaObjectsFromEMFFile rdf:ID="importEcore">
<sml:sourceFilePath rdf:datatype="http://www.w3.org/2001/
XMLSchema#string"
>Security2.uml</sml:sourceFilePath>
<sm:nodeX rdf:datatype="http://www.w3.org/2001/XMLSchema#integer"
>234</sm:nodeX>
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
>import ecore</rdfs:label>
<sm:nodeY rdf:datatype="http://www.w3.org/2001/XMLSchema#integer"
>43</sm:nodeY>
<sm:next>
<sml:ConvertJavaObjectsToRDF rdf:ID="convertToRdf">
<sml:inputVariable rdf:datatype="http://www.w3.org/2001/
XMLSchema#string"
>uml</sml:inputVariable>
<rdfs:label rdf:datatype="http://www.w3.org/2001/
XMLSchema#string"
>convert to rdf</rdfs:label>
<sml:javaClass rdf:datatype="http://www.w3.org/2001/
XMLSchema#string"
>org.eclipse.uml2.uml.*</sml:javaClass>
<sm:nodeX rdf:datatype="http://www.w3.org/2001/
XMLSchema#integer"
>459</sm:nodeX>
<sm:nodeY rdf:datatype="http://www.w3.org/2001/
XMLSchema#integer"
>47</sm:nodeY>
</sml:ConvertJavaObjectsToRDF>
</sm:next>
<sm:outputVariable rdf:datatype="http://www.w3.org/2001/
XMLSchema#string"
>uml</sm:outputVariable>
</sml:ImportJavaObjectsFromEMFFile>
</rdf:RDF>
<!-- Created with TopBraid -->
UML FILE
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/
2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="Security
2">
<eClassifiers xsi:type="ecore:EClass" name="Reading Event
Specification" eSuperTypes="#//Simple%20Event%20Specification"/>
<eClassifiers xsi:type="ecore:EClass" name="Updating Event
Specification" eSuperTypes="#//Simple%20Event%20Specification"/>
<eClassifiers xsi:type="ecore:EClass" name="Actor">
<eStructuralFeatures xsi:type="ecore:EReference" name="granted"
ordered="false"
upperBound="-1" eType="#//Authorization" eOpposite="#//
Authorization/granted%20to"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="plays"
ordered="false"
upperBound="-1" eType="#//Role" eOpposite="#//Role/played
%20by"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Authorization">
<eStructuralFeatures xsi:type="ecore:EReference" name="granted to"
ordered="false"
lowerBound="1" eType="#//Actor" eOpposite="#//Actor/granted"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="granted
for" ordered="false"
lowerBound="1" eType="#//Resource" eOpposite="#//Resource/
@eStructuralFeatures.0"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="authorizes"
ordered="false"
lowerBound="1" eType="#//Event%20Specification" eOpposite="#//
Event%20Specification/authorized%20by"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Deletion Event
Specification" eSuperTypes="#//Simple%20Event%20Specification"/>
<eClassifiers xsi:type="ecore:EClass" name="Resource">
<eStructuralFeatures xsi:type="ecore:EReference" ordered="false"
lowerBound="1"
eType="#//Authorization" eOpposite="#//Authorization/granted
%20for"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Creation Event
Specification" eSuperTypes="#//Simple%20Event%20Specification"/>
<eClassifiers xsi:type="ecore:EClass" name="Simple Event
Specification" eSuperTypes="#//Event%20Specification">
<eStructuralFeatures xsi:type="ecore:EReference" name="part of"
ordered="false"
upperBound="-1" eType="#//Complex%20Event%20Specification"
eOpposite="#//Complex%20Event%20Specification/has%20part"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Event Specification">
<eStructuralFeatures xsi:type="ecore:EReference" name="authorized
by" ordered="false"
upperBound="-1" eType="#//Authorization" eOpposite="#//
Authorization/authorizes"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Information Exchange
Specification"
eSuperTypes="#//Complex%20Event%20Specification">
<eStructuralFeatures xsi:type="ecore:EReference" name="sequenced
by" ordered="false"
lowerBound="1" eType="#//Service%20Contract" eOpposite="#//
Service%20Contract/sequences"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="sent by"
ordered="false"
lowerBound="1" eType="#//Role" eOpposite="#//Role/sends"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="received
by" ordered="false"
lowerBound="1" eType="#//Role" eOpposite="#//Role/receives"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Role">
<eStructuralFeatures xsi:type="ecore:EReference" name="played by"
ordered="false"
upperBound="-1" eType="#//Actor" eOpposite="#//Actor/plays"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="governed
by" ordered="false"
lowerBound="1" eType="#//Service%20Contract" eOpposite="#//
Service%20Contract/governs"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="sends"
ordered="false"
lowerBound="1" upperBound="-1" eType="#//Information%20Exchange
%20Specification"
eOpposite="#//Information%20Exchange%20Specification/sent
%20by"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="receives"
ordered="false"
lowerBound="1" upperBound="-1" eType="#//Information%20Exchange
%20Specification"
eOpposite="#//Information%20Exchange%20Specification/received
%20by"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Service Contract">
<eStructuralFeatures xsi:type="ecore:EReference" name="governs"
ordered="false"
lowerBound="2" upperBound="-1" eType="#//Role" eOpposite="#//
Role/governed%20by"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="sequences"
ordered="false"
lowerBound="1" upperBound="-1" eType="#//Information%20Exchange
%20Specification"
eOpposite="#//Information%20Exchange%20Specification/sequenced
%20by"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Complex Event
Specification" eSuperTypes="#//Event%20Specification">
<eStructuralFeatures xsi:type="ecore:EReference" name="has part"
ordered="false"
lowerBound="1" upperBound="-1" eType="#//Simple%20Event
%20Specification" eOpposite="#//Simple%20Event%20Specification/part
%20of"/>
</eClassifiers>
</ecore:EPackage>
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
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/topbraid-users?hl=en