Merge branch 'dev.etl' of https://repositories.communitynotfound.work/PoliBa-DeepLearning/NanoSocrates into dev.etl
This commit is contained in:
commit
9f221e31cd
@ -43,3 +43,12 @@ INSERT INTO Subjects_Abbreviations(SubjectID, AbbreviationID) VALUES (?,?);
|
||||
-- Please be sure it is a URI before running this query
|
||||
-- and take at least until the domain and the first path part
|
||||
SELECT AbbreviationID FROM Abbreviations WHERE URI LIKE ?;
|
||||
|
||||
-- Query to retrieve data
|
||||
SELECT MovieID, GROUP_CONCAT('<SOT>' || '<SUB>' || SubjectURI || '<REL>' || RelationshipURI || '<OBJ>' || ObjectURI || '<EOT>', '') as RDF_String, Abstract
|
||||
FROM RDFs
|
||||
INNER JOIN Subjects USING (SubjectID)
|
||||
INNER JOIN Relationships USING (RelationshipID)
|
||||
INNER JOIN Objects USING (ObjectID)
|
||||
INNER JOIN WikipediaAbstracts USING (MovieID)
|
||||
GROUP BY MovieID;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user