Fuseki failed with message “Parse error: [line:1, col: 1 ] Content is not allowed in prolog.“
Recently, when uploading an rdf file with fuseki, the following error code occurred:
failed with message "Parse error: [line:1, col: 1 ] Content is not allowed in prolog."
I went to Google and found a pdf. Here is the link. It means that the problem can be avoided by changing the file suffix to .ttl. But the reason is not clear yet.
Attached is the original content of test.rdf.
@prefix ns1: <http://test.com/> .
ns1:node1 ns1:born ns1:1964 ;
ns1:labels ns1:Person ;
ns1:name ns1:Keanu-Reeves .
ns1:node101 ns1:born ns1:1947 ;
ns1:labels ns1:Person ;
ns1:name ns1:Takeshi-Kitano .
ns1:node102 ns1:born ns1:1968 ;
ns1:labels ns1:Person ;
ns1:name ns1:Dina-Meyer .
ns1:node103 ns1:born ns1:1958 ;
ns1:labels ns1:Person ;
ns1:name ns1:Ice-T .
ns1:node104 ns1:born ns1:1953 ;
ns1:labels ns1:Person ;
ns1:name ns1:Robert-Longo .
ns1:node106 ns1:born ns1:1966 ;
ns1:labels ns1:Person ;
ns1:name ns1:Halle-Berry .
ns1:node107 ns1:born ns1:1949 ;
ns1:labels ns1:Person ;
ns1:name ns1:Jim-Broadbent .
ns1:node108 ns1:born ns1:1965 ;
ns1:labels ns1:Person ;
ns1:name ns1:Tom-Tykwer .
The reason may be that file format may be confused.
Read More:
- XML read process error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] Message: Content not allowed in preamble
- JSON parse error: raw timestamp (1595952000000) not allowed for
- [Solved] Canal Error: CanalParseException: column size is not match,parse row data failed
- [Solved] Message from debugger: debug-server is x86_64 binary running in translation, attached failed.
- [How to Fix] manual close is not allowed over a Spring managed SqlSession
- Error 2 error c2491: XX: definition of dllimport static data member is not allowed
- [Solved] HTTP Error 405.0-Method Not Allowed occurs in the Put operation of the REST service on IIS7.5
- [Solved] Android12 Download Error: The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- [Solved] hive Caused by: MetaException(message:Version information not found in metastore. )
- Android integration of iFLYTEK’s speech recognition (voice dictation) error message “Failed to create the object, please confirm that libmsc.so is placed correctly, and createUtility is called to initialize”
- [Solved] Unity Error: “Not allowed to access vertices on mesh”
- maven Error: Element ‘dependency’ cannot have character [children], because the type’s content type is
- [Solved] Android Error: java.lang.IllegalStateException: Not allowed to start service Intent
- [Solved] Fatal message conversion error; message rejected; it will be dropped or routed to a dead letter exchan
- [Solved] R Language Error: duplicate ‘row.names’ are not allowed
- JSON parse error: Can not deserialize instance of java.lang.String out of START_OBJECT token
- [GO]Solve request origin not allowed by Upgrader.CheckOrigin websocket cross-domain
- error A2031: gisters not allowed [How to Solve]
- [Solved] SpringBoot Error: HttpMediaTypeNotSupportedException: Content type ‘application/json‘ not supported
- [Solved] Error: Message failed: 554 5.2.0 STOREDRV.Submission.Exception:OutboundSpamException;