Jeff,
If you need to enforce the URI pattern, simply insert another module after
the conversion - ApplyConstruct with replace = true. And use a query that is
something like this:
CONSTRUCT {?new ?p ?o}
WHERE {?s a <http://www.boeing.com/sem/acms/ACMS_Datalink_Report#
<http://www.boeing.com/sem/acms/ACMS_Datalink_Report> :ACMSReportData>.
?s ?p ?o .
?s :p4 ?v4.
?s :p5 ?v5.
?s :p6 ?v6.
LET (?new := smf:buildURI (put pattern here))}
:p4, :p5, :p6 should, of course, be replaced with the properties that are in
these columns.
You can always put a breakpoint in the script and, as you run, look at all
the triples that flow between the modules. This helps to understand what is
going on.
Regards,
Irene
From: [email protected]
[mailto:[email protected]] On Behalf Of Gokhan Soydan
Sent: Monday, March 21, 2011 10:37 PM
To: [email protected]
Subject: Re: [topbraid-users] afn functions in sparql tab/spin rules
Hi Jeff,
The reasons that the script with ImportRDFFromWorkspace (the 2nd script) did
better job, but skipped instancePattern are as follows as answers to your
analysis of the 1st script:
It didn't use the range of the defined properties to determine the types
of the subjects imported from the table data. It just makes them all
strings.
The 2nd script imports the rdfs:range triples, so the importer knows how to
assert types.
It's not using the instancePattern to create the URLs for each row of
data.
The instance pattern is not used, for importing the spreadsheet to input
graph, . The first column of the spreadsheet in this case should already
have the instance qnames, and they are used. Importing the spreadsheet to a
new graph vs. the input graph are different. More information is at the Help
page of TopBraid Composer.
TopBraid Composer > Import and Export > Import external information > Import
Spreadsheets
It's not using the className property to classify each row of data, it
just makes them all owl:Thing's
The 2nd script imports the definition for the resource corresponding to the
className.
Gokhan
--
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
--
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